Skip to main content

Long

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

Overview

long.lua defines the static layout data for a rectangular map room used in the game world generation system. It specifies the structure of the room using the Tiled Map Editor (TMX) format, including a background tile layer (BG_TILES) and an object group (FG_OBJECTS) containing one pigtorch placement. This file is consumed by the world generation system to instantiate the room geometry and assets during world loading.

Usage example

This file is not intended for direct component use in Lua code; it is loaded and parsed by the world generation system. It is referenced indirectly via room placement logic (e.g., in tasksets/ or levels/). Example consumption by engine code:

-- Internal usage: worldgen loads and parses TMX data like this
local roomdata = require("map/static_layouts/rooms/room/long")
local bg_tiles = roomdata.layers[1].data
-- ... pass data to room instantiation logic

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"TMX format version.
luaversionstring"5.1"Lua version compatibility tag.
orientationstring"orthogonal"Tilemap orientation type.
widthnumber32Room width in tiles.
heightnumber32Room height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Room-level custom properties (empty).
tilesetsarrayTileset definition with external image reference.
layersarrayContains BG_TILES (tile layer) and FG_OBJECTS (object group).

Main functions

Not applicable.

Events & listeners

Not applicable.