In this article I’ll give you a brief introduction to HTML5 game programming, the most modern method to create browser games. With the release of HTML5 a new HTML tag, called the canvas, was introduced. This tag allows us to place a transparent canvas on a webpage and draw on it. If we draw, clean, and re-draw this canvas many times per second we are creating animations, which is eventually how we can create our HTML5 browser game. This summarizes HTML5 game programming pretty neatly. However, there’s still more to it which I will cover in the following paragraphs.
The HTML5 Canvas API
What We Need to Create HTML5 Browser Games
Turning the Browser Into a Gaming Console
Source by James R. Pierce