Skip to main content

Two

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

Overview

This file defines a static room layout using Tiled map format. It is used in DST's world generation system to place pre-designed room sections in the game world. The layout consists of a 32×32 tile grid with a background tile layer (BG_TILES) containing decorative floor elements and an empty object layer (FG_OBJECTS). This file is part of the static_layouts/rooms/room_open/ directory, indicating it belongs to a set of open-area room templates used for procedural world generation.

Usage example

-- This file is loaded by the world generation system as a data definition.
-- It is not instantiated as a component or added to an entity directly.
-- Usage occurs internally via the map/level generation system.
-- Example internal usage (not shown here):
-- local layout = require("map/static_layouts/rooms/room_open/two")
-- layout.data -- contains the tile data

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version.
luaversionstring"5.1"Lua version compatibility.
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{}Map-level custom properties (empty here).
tilesetstableSee sourceArray of tileset definitions (contains one tileset named "tiles").
layerstableSee sourceArray of layer definitions (contains BG_TILES tile layer and FG_OBJECTS object group).

Main functions

Not applicable. This file returns static data only.

Events & listeners

None identified.