Constructor


WorldBullet(x: any, y: any, texture: any)

Arguments:

x: any
y: any
texture: any




Methods










WorldBullet:isBullet(id: any)

Arguments:

id: any

Returns:

1: boolean


WorldBullet:onAdd(parent: any)

Arguments:

parent: any


WorldBullet:onCollide(soul: any)

Arguments:

soul: any


WorldBullet:onDamage(soul: any)

Arguments:

soul: any


WorldBullet:onRemove(parent: any)

Arguments:

parent: any


WorldBullet:setSprite(texture: any, speed: any, loop: any, on_finished: any)

Arguments:

texture: any
speed: any
loop: any
on_finished: any

Returns:

1: Sprite





Fields



Undocumented



WorldBullet.battle_fade: boolean

Whether this bullet gets faded in/out by the battle state



WorldBullet.collider: Hitbox

Default collider to half this object's size



WorldBullet.damage: integer

Damage given to the player when hit by this bullet



WorldBullet.destroy_on_hit: boolean

Whether this bullet gets removed on collision with the player





WorldBullet.inv_timer: number

Invulnerability timer to apply to the player when hit by this bullet



WorldBullet.remove_offscreen: boolean

Whether to remove this bullet when it goes offscreen



WorldBullet.sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.