new require("controller/Game")()
This:
- Source:
- Source:
Classes
Methods
-
<private> __initModel(mazeComponents) → {module:model/Game}
-
Create the game model and its components.
Parameters:
Name Type Description mazeComponents
Object The components that make up the labyrinth. Properties
Name Type Description walls
An array of the walls. Properties
Name Type Description x
y
width
height
start
Where the ball should start Properties
Name Type Description x
y
exitPath
An array of object that make up the exit path that the player should follow to reach the goal. Properties
Name Type Description x
y
- Source:
Returns:
- Type
- module:model/Game
-
<private> __initView(model) → {module:view/Game}
-
Create the game view.
Parameters:
Name Type Description model
module:model/Game The game model that the view should show on the screen. - Source:
Returns:
- Type
- module:view/Game