I have made a type to shoot game using HTML5, Javascript and Ruby on Rails.
Here is the link for the game Tweetraitor
I wanted to make a loader for resources (sounds, images) when the game starts. Currently when the game starts the background image takes time to load and it does not look good. This loader should load all the assets those are used later in the game.
Code for the game is here: Tweetraitor on GitHub
In the current version, all the images are loaded using js in an erb file which controls the game logic. Is there a better way to do this?