Skip to main content

One

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

Overview

This file defines a static room layout (hallway_residential_two/one.lua) used in world generation. It specifies a 32x32 tile grid using Tiled-compatible JSON data structure with a background tile layer (BG_TILES) and an empty foreground object group (FG_OBJECTS). The layout contains only non-empty tiles at specific grid positions, forming a repeating vertical pattern suggesting wall segments.

This is not a component in the ECS sense; it is a data file returned as a table used by the world generation system to build room geometry during map creation.

Usage example

-- Typically loaded internally by the worldgen system
local layout = require("map/static_layouts/rooms/hallway_residential_two/one")
-- layout.width, layout.height, layout.layers[1].data are used to construct the room

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version
luaversionstring"5.1"Lua version compatibility
orientationstring"orthogonal"Tilemap orientation type
widthnumber32Width of the map in tiles
heightnumber32Height of the map in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
tilesets[1].namestring"tiles"Name of the tileset used
tilesets[1].firstgidnumber1First global tile ID
tilesets[1].imagestringPath to tileset imageRelative file path to the tileset image asset
layers[1].namestring"BG_TILES"Name of the tile layer
layers[1].datatableArray of 1024 numbersTile IDs row-wise (0 = empty tile)

Main functions

Not applicable.

Events & listeners

Not applicable.