Methods
_attackFrame()
Render a single frame in the attack animation
- Source:
_attackFrameArc()
Render a single frame in the attack arc animation
- Source:
_attackFrameRect()
Render a single frame in the attack rect animation
- Source:
animateAttack()
Start the attack animation
- Source:
createSprite()
Create a sprite for player and add to the floor.
- Source:
die()
Player dies.
- Source:
remove()
Remove a player from a PIXI.container
- Source:
tint()
Tints player's sprite red.
- Source:
untint()
Untints player's sprite.
- Source:
update(viewX,, viewY)
Update the player sprite's position for all players on the floor.
Parameters:
Name | Type | Description |
---|---|---|
viewX, |
int | |
viewY |
int |
- Source: