Global

Members

GAME_TYPE

Variable holding the current game type the player is in. IN DEVELOPMENT
Source:

Methods

concatRows(first, last) → {Array}

Concats two 2D arrays into one 2D array
Parameters:
Name Type Description
first Array
last Array
Source:
Returns:
A 2D array created by concatenating the last array onto the end of the first array
Type
Array

getTileRow(t, w) → {Array}

Parameters:
Name Type Description
t A constructor for the blocks/tiles to be created
w The number of blocks/tiles of type t that will be returned
Source:
Returns:
An array of length w of blocks/tiles of type t
Type
Array

loadIdImage(src, width, height, id) → {Image}

Parameters:
Name Type Description
src String The source URI for the image to be loaded
width Integer The width in pixels of the image
height Integer The height in pixels of the image
id Integer The ID of the image. Used by ImageLoadStacks.
Source:
Returns:
An Image object, regardless of whether it has loaded yet or not.
Type
Image

loadImage(src, width, height) → {Image}

Parameters:
Name Type Description
src String The source URI for the image to be loaded
width Integer The width in pixels of the image
height Integer The height in pixels of the image
Source:
Returns:
An Image object, regardless of whether it has loaded yet or not.
Type
Image