Members
game :GameControl
The handler for the game control class
Type:
wordList :Object
A json list of words
Type:
- Object
wordListKeys :Array
Array of keys for the json word list
Type:
- Array
Methods
draw()
p5.js draw function, is run every frame to create the desired animation
keyPressed()
Handles key pressed events
mousePressed()
handles the mouse click events. Currently this function only restarts the
game.
preload()
asynchronously loads the word list
setup()
p5.js setup function, creates canvas.
setupGame()
This is the callback function to setup the game for the first time after the
wordlist is loaded