Skip to content

WorldSound

class WorldSound : Entity()
Example
fun alarm(player: Actor, alarm: SoundEffectDefinition) {
val sound: WorldSound = alarm.spawn(player.tile4, radius = 12, loops = 3)
Logger.info("alarm sounding at ${sound.tile4}")
}
fun create(
id: Int,
tile: Tile3,
radius: Int,
volume: Int,
delay: Int
): WorldSound