Class Level
Defined in: Level.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Level()
A class to represent the level
|
Method Attributes | Method Name and Description |
---|---|
Adds the blocks to the screen by creating VisualGameObjects
|
|
currentBlock(x)
|
|
groundHeight(blockIndex)
|
|
Initialises this object
|
Method Detail
addBlocks()
Adds the blocks to the screen by creating VisualGameObjects
currentBlock(x)
- Parameters:
- x
- The x position to test
- Returns:
- The block under the specified x position
groundHeight(blockIndex)
- Parameters:
- blockIndex
- The block number
- Returns:
- The hieght of the ground under the specified block
startupLevel()
Initialises this object