HTML and CSS Reference
In-Depth Information
Figure I.18. Wilson exploring a London park
The first requirement is a function to draw a correctly scaled slice of the image on the can-
vas, as shown in listing I.33 .
Listing I.33. Draw a segment of the background image
The next listing shows the code to activate the Pointer Lock API. This code should go at
the top of the go() function.
Search WWH ::

Custom Search