Properties
animatedSpriteName
animatedSpriteName: string
attackSpriteName
attackSpriteName: string
dieSpriteName
dieSpriteName: string
enemyCollisionComponent
enemyCollisionComponent: string
groundCollisionComponent
groundCollisionComponent: string
hitSpriteName
hitSpriteName: string
idleSpriteName
idleSpriteName: string
jumpSpriteName
jumpSpriteName: string
jumping
jumping: boolean = false
maxVelocityX
maxVelocityX: number = 2
maxVelocityY
maxVelocityY: number = 15
playerCollisionComponent
playerCollisionComponent: string
rotate
rotate: boolean = true
walkSpriteName
walkSpriteName: string
Sets this classes data from a JSON object.