Constructor


OverworldSoul(x: any, y: any)

Arguments:

x: any
y: any




Methods






OverworldSoul:onAdd(parent: any)

Arguments:

parent: any


OverworldSoul:onCollide(bullet: WorldBullet)

(Override) Called whenever a bullet hits the soul
By default, calls bullet:onCollide() which handles the soul taking damage

Arguments:

bullet: WorldBullet

The class that all World bullets in Kristal originate from.
Generic bullets can be spawned into the world with Game.world:spawnBullet(texture, x, y)
Files in scripts/world/bullets will also be loaded as world bullets and should Extend this class. Extension bullets can be spawned into the world with Game.world:spawnBullet(id, ...) - their id defaults to their filepath, starting from scripts/world/bullets. Additional arguments ... are passed into the bullet type's init function.



OverworldSoul:onRemove(parent: any)

Arguments:

parent: any





Fields


OverworldSoul.collider: CircleCollider

The hitbox of the soul, defaulting to a circle with an 8 pixel radius



Undocumented