ClimbEnemy
┗> WorldBullet > Object > Class
A ClimbEnemy is a type of WorldBullet which can be damaged by the player when they jump into it while climbing.
Constructor
ClimbEnemy(x: number, y: number, texture: string|love.Image)
Arguments:
| x: number | |
| y: number | |
| texture: string|love.Image | Drawable image type. |
Methods
ClimbEnemy:hurt(amount: number, player: Player)
Hurts this climb enemy for a certain amount.
Arguments:
| amount: number | The amount of damage to deal to this climb enemy. |
| player: Player | The player that is dealing the damage, used for knockback. |
ClimbEnemy:isActive()
(Override) Whether or not this enemy can be interacted with by the player.
Returns:
| 1: boolean |
ClimbEnemy:onDeath()
Called when this enemy dies. By default, it spawns death effects, plays sounds, and removes itself.
ClimbEnemy:onJumpAttack(player: Player)
(Override) Called when the player jumps into this bullet while climbing.
Arguments:
| player: Player | The character controlled by the player when in the Overworld. |
ClimbEnemy:playAttackSounds()
Plays sounds when this enemy is attacked.
ClimbEnemy:playDeathSounds()
Plays sounds when this enemy dies.
ClimbEnemy:spawnAttackEffects()
Spawns effects when this enemy is attacked.
ClimbEnemy:spawnDeathEffects()
Spawns effects when this enemy dies.