HTML and CSS Reference
In-Depth Information
Figure 9.8. The first thing you'll do is set up the intro screen logic. After that, you'll create the triangular player
between the words Geometry and Destroyer , which you haven't seen previously.
Step 1: Capture user input
In your js folder, create and/or open run.js in the text editor of your choice. You should
notice that it's completely blank. Set up the game's basic input monitor and methods by in-
serting everything into a self-executing function with the following listing in run.js. Make
sure to place all code from here on out in this self-executing function to prevent variables
from leaking into the global scope.
Search WWH ::

Custom Search