Skip to main content

Two

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

Overview

This file defines a static map layout (rooms/hallway/two.lua) for use in DST's world generation system. It specifies a 32x32 tile layout using orthogonal orientation and 16x16 tile dimensions. The layout includes a tile layer (BG_TILES) with background tile IDs and an object group (FG_OBJECTS) containing one pigtorch object positioned in the foreground. Static layouts like this are used by room-based world generators to assemble consistent, reusable map sections.

Usage example

Static layouts are typically loaded and used internally by the world generation system. Example usage in a mod context:

-- Example: manually loading and inspecting a static layout
local layout = require("map/static_layouts/rooms/hallway/two")
print("Layout width:", layout.width) -- 32
print("Layout height:", layout.height) -- 32
print("Tile data size:", #layout.layers[1].data) -- 1024 (32*32)

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version target.
orientationstring"orthogonal"Map orientation type.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Global map properties (empty here).
tilesetsarray{{...}}Tileset definitions.
layersarray{{...}, {...}}Layer definitions (tile and object groups).

Main functions

Not applicable — this file is a pure data definition with no runtime logic or functional methods.

Events & listeners

None identified.