HTML and CSS Reference
<div style="position: absolute; top: 50px; left: 50px;">
<canvas id="canvas" width="480" height="480">
Your browser does not support HTML5 Canvas.
Throughout this entire topic, we have used game- and entertainment-related subjects
to demonstrate canvas application building concepts. Over these last two chapters,
we've sped up the game discussion and covered many game concepts directly by cre-
ating two unique games and optimizing a third with bitmaps and object pooling. In
doing so, we have applied many of the concepts from the earlier chapters in full-blown
game applications. The techniques used to create a game on Canvas can be applied to
almost any canvas application from image viewers to stock charting. The sky is really
the limit, as the canvas allows the developer a full suite of powerful low-level capabilities
that can be molded into any application.
In Chapter 10 , we will look at porting a simple game from the canvas into a native