HTML and CSS Reference
In-Depth Information
</head>
</head>
<body>
<body>
<div
<div style= "position: absolute; top: 50px; left: 50px;" >
<canvas
<canvas id= "canvas" width= "200" height= "200" >
Your browser does not support HTML5 Canvas.
</canvas>
</canvas>
</div>
</div>
</body>
</body>
</html>
</html>
When we run Example 8-4 , we will see the player ship in the upper-left corner of the canvas.
The static and thrust states will alternate on each frame.
Search WWH ::




Custom Search