Skip to main content

One

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

Overview

This file exports a table defining the static layout of a residential room (room_residential_two/one.lua) using Tiled map format. It specifies tile layer data (BG_TILES), object placements (FG_OBJECTS), and rendering properties (dimensions, tile size) for procedural world generation. The data is consumed by the game's map generation systems to place room layouts in the world.

Usage example

This file is not instantiated as an ECS component; it is a data module returning a Tiled-compatible layout table. It is loaded and consumed internally by the map generation system:

-- Internally used by map/task system, e.g.:
-- local room_layout = require "map/static_layouts/rooms/room_residential_two/one"
-- (No manual instantiation required)

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 for embedded code.
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.
tilesetstablesee sourceList of tileset definitions (includes path to tiles.png).
layerstablesee sourceArray of map layers (tile layer + object group).

Main functions

This module returns a data table and does not define or expose any functional methods.

Events & listeners

Not applicable.