Class: Controller

Controller

new Controller(p_init, p_plane, p_snake)

Parameters:
Name Type Description
p_init Object Should contain the attribute keys (the keys to control the move direction of the snake) and speed (the speed of the snake).
p_plane $app$.game.snake.Plane The plane where the snake has been placed.
p_snake $app$.game.snake.Snake The snake itself.
Source:

Methods

pauseGame()

Pauses the game.
Source:

startGame()

Starts the game.
Source:

stopGame()

Stops the game.
Source:
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Sun Dec 15 2013 11:49:53 GMT+0100 (MEZ) using the DocStrap template.