Class ExampleGame
Example code in the form of a simple "falling game" where the player must try to stay on the screen as platforms move past them upward.
Defined in: example-game.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
ExampleGame(gs)
|
| Method Attributes | Method Name and Description |
|---|---|
|
draw(c)
|
|
|
get_collision_aabb()
|
|
|
init()
|
|
|
update()
|
Method Detail
draw(c)
- Parameters:
- c
get_collision_aabb()
init()
update()
