HTML and CSS Reference
In-Depth Information
What Does Canvas Offer?
Even though Canvas lacks some of the features that make the Flash platform very nice for
game development, it also has some strengths.
A powerful single stage
HTML5 Canvas is closely akin to the Flash Stage. It is a rectangular piece of screen real
estatethatcanbemanipulatedprogrammatically.AdvancedFlashdevelopersmightrecog-
nize Canvas as a close cousin to both the BitmapData and Shape objects in ActionScript.
We can draw directly to the canvas with paths and images and transform them on the fly.
Logical display objects
Canvas gives us a single physical display object, but we can create any number of logical
display objects. We will use JavaScript objects to hold all of the logical data and methods
we need to draw and transform our logical game objects to the physical canvas.
Search WWH ::




Custom Search