Global

Members

game :GameControl

The handler for the game control class
Type:
Source:

wordList :Object

A json list of words
Type:
  • Object
Source:

wordListKeys :Array

Array of keys for the json word list
Type:
  • Array
Source:

Methods

draw()

p5.js draw function, is run every frame to create the desired animation
Source:

keyPressed()

Handles key pressed events
Source:

mousePressed()

handles the mouse click events. Currently this function only restarts the game.
Source:

preload()

asynchronously loads the word list
Source:

setup()

p5.js setup function, creates canvas.
Source:

setupGame()

This is the callback function to setup the game for the first time after the wordlist is loaded
Source:

Documentation generated by JSDoc 3.6.3 on Sat Aug 05 2023 20:47:13 GMT+0100 (BST)