Fastest way to access sprite sheet for HTML5 game app

i am building a HTML5 app where about 1000+ images from a sprite sheet is accessed.

Currently i am accessing the images from a database, and it has a small time delay of about 200ms. I've checked and it's not the onlick or touch events thats causing the problem. is there a better alternative rather than accessing a database...say save the images in Java classes?

If I do it in XML and reference the images through DOM, it may be quite complicated to keep on looking up the entire page (or even by ID).

Constructive suggestion will be greatly appreciated!


One option would be to use CSS image sprites perhaps.

Need Your Help

How to create an azure web service and use existing sql database

c# web-services azure

I'm working on an exercise and i want a help. So far I have to created an MVC4 Internet Application using C# and uploaded it to azure as a web site (custom create with sql server). Now I want to cr...

How can I add a directory to the Perl library path at the system level?

linux perl path include

On a standard linux set up, where can I add a directory to the @INC variable?