Being able to render graphics is the first step to game development. Lets start with the best source available to draw content using HTML5's Canvas element.
The foundation of any game is the game loop. This is what drives the game forward and allows for all the interactions to take place.
The fundamentals of action games are the basic geometric equations that make up the physics and collision detection engine.
Finding out what is the first object a ray touches is a useful tool in any game developer's toolset. We'll go over a method we've been using in our games.
One of the most essential two dimensional events in an action game is the axis aligned bounding box collision scenario.