Skip to main content

Four

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

Overview

This file is a static layout definition for a dungeon room (pit_room_armoury_two), serialized in Tiled map format. It defines the room's geometry via a tile layer (BG_TILES) and placed in-world entities (spawners) via an object group (FG_OBJECTS). These layouts are loaded by the world generation system to construct stable room layouts for procedural cave environments.

Usage example

This file is not instantiated as a component; it is consumed by the world generation system during level setup. Typical usage occurs internally in DST's mapgen and room systems, for example:

-- Not a direct usage example; this file is loaded as data, not as a component.
-- It defines layout metadata used by scripts in map/tasksets/ and map/levels/.
-- Example reference in worldgen:
-- local room_data = require("map/static_layouts/rooms/pit_room_armoury_two/four")

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled export version
luaversionstring"5.1"Lua version targeted by data encoding
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
tilesetstable...Contains one tileset definition with image path and dimensions
layerstable...Contains layer definitions (BG_TILES, FG_OBJECTS)

Main functions

Not applicable — this file is a data table, not a component with methods.

Events & listeners

Not applicable — this file is static data and does not interact with the event system.