Skip to main content

Three

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

Overview

This file defines a static room layout named three, used for generating residential-style rooms in the game's cave world. It specifies tiling data for background layers (BG_TILES) and object placements (FG_OBJECTS) using Tiled map format metadata. It does not define a runtime component or entity — it is a data file consumed by the world generation system to instantiate room content.

Usage example

This file is not instantiated directly in gameplay code. Instead, it is referenced by room generation logic, for example:

-- Internal usage by map/task system; not used by modders directly
local room = require("map/static_layouts/rooms/room_residential_two/three")
-- The table returned contains map metadata used by the room spawner.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version.
luaversionstring"5.1"Lua version target for map encoding.
orientationstring"orthogonal"Map orientation type.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Width of a single tile in pixels.
tileheightnumber16Height of a single tile in pixels.
tilesetstableArray of tileset definitions (used for rendering background tiles).
layerstableArray of layers: one tile layer (BG_TILES) and one object group (FG_OBJECTS).
propertiestable{}Global room properties (currently empty).

Main functions

Not applicable.

Events & listeners

Not applicable.