Skip to main content

Four

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

Overview

This file describes a static room layout named "four" used in the game's world generation system. It is not an ECS component, but rather a Tiled map export in Lua format that defines tile data and object placements for a hallway-style room. It is consumed by the map/room generation system to instantiate physical room structures in-game.

The room is 32×32 tiles in size with 16×16 tile dimensions. Tile layer "BG_TILES" contains static floor/background tiles (mostly empty, with specific non-zero values at certain positions), while "FG_OBJECTS" defines a single foreground object (a pigtorch) placed at world coordinates.

Usage example

This file is not instantiated directly by modders. It is referenced internally by the world generation system when building static layouts, typically via MapRooms:LoadRoom("rooms/hallway/four") or similar utilities. No direct modder interaction is intended.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version targeted by export.
orientationstring"orthogonal"Map orientation type.
widthnumber32Room width in tiles.
heightnumber32Room height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Optional room-level metadata.
tilesetsarray{{...}}Tileset definitions (single set referenced).
layersarray{{...}, {...}}Layer definitions: background tiles + foreground objects.

Main functions

Not applicable.

Events & listeners

Not applicable.