Methods
Wave:spawnBulletTo(parent: any, bullet: any, : unknown)
Arguments:
parent: any | |
bullet: any | |
: unknown |
Returns:
1: Bullet|nil |
Wave:spawnObject(object: any, x: any, y: any)
Arguments:
object: any | |
x: any | |
y: any |
Returns:
1: unknown|nil |
Wave:spawnObjectTo(parent: any, object: any, x: any, y: any)
Arguments:
parent: any | |
object: any | |
x: any | |
y: any |
Returns:
1: unknown |
Wave:spawnSprite(texture: any, x: any, y: any, layer: any)
Arguments:
texture: any | |
x: any | |
y: any | |
layer: any |
Returns:
1: unknown|nil |
Wave:spawnSpriteTo(parent: any, texture: any, x: any, y: any, layer: any)
Arguments:
parent: any | |
texture: any | |
x: any | |
y: any | |
layer: any |
Returns:
1: unknown|nil |
Fields
Undocumented
Wave.arena_shape: nil
Wave arena shape (overrides all rectangle options)
Wave.arena_width: nil
Wave arena rectangle size
Wave.arena_x: nil
Wave arena position
Wave.bullets: table
Contains bullets added via spawnBullet
Wave.encounter: any
Reference to the current encounter
Wave.finished: boolean
Whether the wave is done or not
Wave.has_arena: boolean
Whether the wave should spawn an arena
Wave.objects: table
Contains everything added via spawn functions (automatically cleared)
Wave.soul_start_x: nil
Position the soul will transition to at the start of the wave
Wave.timer: Timer
Timer for convenience