Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.44 KB

eventsTable.md

File metadata and controls

48 lines (33 loc) · 1.44 KB

Board

Event Description
playercollision The Board class has detected the collision of two Player sprites.

Details

playercollision

Key Value
player The player instance upon which the event is fired.
position A simple object { x, y } representing the next coordinates where the player instance sprite will be drawn.

Note: whenever an animation occurs, the colliding sprite is considered to be the one the animated sprite is passing over.

Renderer

Event Description
playerinitialized The Player class has been instantiated.

Player

Event Description
playermoved The AnimationManager class has started the animation of a Player sprite.
playerstopped The AnimationManager class has stopped the animation of a Player sprite.
playerclick The user has clicked over a Player sprite to select or deselect said player.

Side effects

Details

playermoved

Key Value
player The player instance upon which the event is fired.
position A simple object { x, y } representing the next coordinates where the player instance sprite will be drawn.

Note: whenever an animation occurs, this event will be fired for every frame of that animation.

playerstopped

Key Value
player The player instance upon which the event is fired.