Skip to content

WorldGraphic

class WorldGraphic : Entity()
Example
fun burst(player: Actor, burst: GraphicDefinition) {
val graphic: WorldGraphic = burst.spawn(player.tile4, delay = 2)
Logger.info("graphic at ${graphic.tile4}")
}
fun create(
id: Int,
tile: Tile3,
height: Int = 0,
delay: Int = 0,
lifespanCycles: Int? = null
): WorldGraphic