HTML and CSS Reference
In-Depth Information
in the previous figure. Adding one more vertex to the triangle creates the square shown in
figure 9.11 , as you probably guessed.
Figure 9.11. Demonstrates where a vertex is located on a square
Step 4: Animate the player entity
Getting back to your Player entity, you need to append an update() method with the
following listing to complete it with movement, rotation, and shooting controls via the key-
board. You're already generating keyboard properties from the Ctrl object you integrated
earlier.
 
Search WWH ::




Custom Search