Class: GameInterface

GameInterface(manager)

new GameInterface(manager)

Parameters:
Name Type Description
manager MicrogameJam The microgamejam manager.
Source:

Members

(inner) MicrogameJamMainManager

Reference to MicrogameJam.
Source:

(inner) _currTimer :number

Current timer value
Type:
  • number
Source:

(inner) _difficulty :number

Current difficulty, ranging from 1 to 3.
Type:
  • number
Source:

(inner) _gameEnd :boolean

Whether or not the game has ended.
Type:
  • boolean
Source:

(inner) _lives :number

Number of lives the player has
Type:
  • number
Source:

(inner) _maxTimer :number

Current maximum timer value.
Type:
  • number
Default Value:
Source:

Methods

(static) getDifficulty() → {number}

Source:
Returns:
Type
number

(static) getLives() → {number}

Source:
Returns:
Type
number

(static) getMaxTimer()

Source:
Returns:

(static) getTimer() → {number}

Returns the number of seconds left until the game is over.
Source:
Returns:
Type
number

(static) loseGame()

Lose the game, and then end it.
Source:

(static) setMaxTimer(time)

Parameters:
Name Type Description
time number Time to set.
Source:

(static) winGame()

Win the game, and then end it.
Source:

(inner) _gameEnded(didWin)

Callback for when the game has ended.
Parameters:
Name Type Description
didWin boolean
Source: