Game Development Reference
In-Depth Information
In my index.html file, I have my canvas and my snap view image wrapped in the same game
div I talked about previously in the scaling part of this chapter.
<body>
<div id="game">
<canvas id="canvas"></canvas>
<img id="snap-view" src="media/snap-view.png"/>
</game>
</body>
Make sure your snap view image is no larger than 320×768 ( Figure 3-1 ).
Search WWH ::




Custom Search