Skip to main content

Three

Based on game build 714014 | Last updated: 2026-03-03

Overview

This file defines a static layout for a room in DST's world generation system. It is not a component but a data-only table returning Tiled-compatible map information (version "1.1", "orthogonal" orientation, 32x32 grid). It specifies background tile layer data (BG_TILES) using integer tile IDs, an object group (FG_OBJECTS) containing one pigtorch placed at screen coordinates (252, 221), and basic map geometry (tile size 16x16, tileset reference). It is used by worldgen/room placement systems to instantiate room prefabs.

Usage example

This file is not meant to be used directly as a component. Instead, it is loaded and processed by world generation systems (e.g., via static_layouts.lua loaders) to build room instances. A typical usage pattern in a room generator script would be:

local room_data = require "map/static_layouts/rooms/room/three"
-- room_data is a plain table used to construct the room entity
inst:AddTag("room")
-- Further configuration using room_data.layers, room_data.objectgroup, etc.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version expected for parsing.
orientationstring"orthogonal"Map orientation type.
widthnumber32Room width in tiles.
heightnumber32Room height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Room-level custom properties (empty here).
tilesetstable{{...}}Array of tileset definitions (contains one entry referencing tiles.png).
layerstable{{...}, {...}}Layer collection: BG_TILES (tile layer), FG_OBJECTS (object group).

Main functions

Not applicable.

Events & listeners

Not applicable.