HomeWikiSourceDownloadsDiscord

Kristal Wiki


Getting Started


These pages get you ready to use the engine.

  • Downloading Kristal
  • Installing and Playing Mods

General Mod Creation


These pages teach you about mod development.

  • Understanding the Basics
  • Creating a Mod
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬Back to Top⮭

Kristal Wiki


Getting Started


These pages get you ready to use the engine.

  • Downloading Kristal
  • Installing and Playing Mods

General Mod Creation


These pages teach you about mod development.

  • Understanding the Basics
  • Creating a Mod
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬Back to Top⮭

TileLayer

┗> Object > Class


Constructor


TileLayer(map: any, data: any)

Arguments:

map: any
data: any




Methods


TileLayer:draw()



TileLayer:getTile(x: any, y: any)

Arguments:

x: any
y: any

Returns:

1: unknown|nil
2: integer|unknown


TileLayer:setTile(x: any, y: any, tileset: any, : unknown)

Arguments:

x: any
y: any
tileset: any
: unknown



Fields



Undocumented



TileLayer.animated_tiles: table



TileLayer.animated_tiles: table



TileLayer.canvas: unknown



TileLayer.debug_select: boolean



TileLayer.drawn: boolean



TileLayer.drawn: boolean



TileLayer.drawn: boolean



TileLayer.map: any



TileLayer.map_height: unknown



TileLayer.map_width: unknown



TileLayer.name: unknown



TileLayer.parallax_x: integer



TileLayer.parallax_y: integer



TileLayer.tile_data: unknown



TileLayer.tile_data: table



TileLayer.tile_opacity: integer


DELTARUNE by Toby Fox. Website designed by NyakoFox. © 2025 Kristal Team. All rights reserved.