Skip to main content

Four

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

Overview

This file defines a static room layout named four used by the world generation system. It specifies a 32x32 grid map (in tiles) with 16x16 pixel tile dimensions, and contains only a background tile layer (BG_TILES) and an empty object layer (FG_OBJECTS). The layout uses tile ID 27 and 3 in specific patterns to render floor/wall visuals in the forest biome's open rooms. As a static layout, it is loaded once during world generation and does not change at runtime.

Usage example

Static room layouts like this one are not instantiated directly in mod code. They are referenced by the world generation system when assigning room templates to procedural map structures. For documentation purposes, here is how such a layout might be processed internally:

-- This is illustrative of how the engine consumes the layout file
local room_template = require "map.static_layouts.rooms.room_open.four"
-- room_template.layers[1].data contains the flattened tile array for BG_TILES

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua interpreter version.
orientationstring"orthogonal"Map orientation type.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Tile width in pixels.
tileheightnumber16Tile height in pixels.
propertiestable{}Map-level properties (empty in this layout).
tilesetstable(see source)Tileset definitions, referencing external image assets.
layerstable(see source)Layer definitions: BG_TILES and FG_OBJECTS.

Main functions

None identified. This file returns a static data table and does not define any functions.

Events & listeners

None identified. This file does not interact with the event system.