2014 | OriginalPaper | Chapter
14. Game Objects in a Structure
Published in:
Building JavaScript Games
Abstract
In the previous chapter, you saw how you can use arrays to represent lists of things. For example, you used an array to keep track of the locations where the player is touching the touch screen, or how many keys the player is currently pressing on the keyboard.