I can see how this might not be a good enough question but I have just embarked on a journey to build the first decent Game Engine for HTML5 canvas
that is cross browser and most of all fast. The only problem is I am very new to game design and don't know many tricks of the trade that will help me.
The game I am currently implementing for which the engine will be taken out of is a tile based 2D platformer with MANY tiles (around 3500). I'll start with some tips that I've thus far learnt.
- Redraw Regions - only redraw areas that change
- Avoid unnecessary function calls (Firefox does not like too many of them)
- Use the DOM if you can
- Chunk tiles together for quicker access
Other things I am looking for are things like Terrain Generation, Lighting in 2D, Maps, quick server communication. If this is too vague, I will try and close it. Just want to know game design better.
Links/resources would be good. Especially for physics or important maths.