Skip to main content

Abandonedboat

Based on game build 714014 | Last updated: 2026-02-28

Overview

This file defines the static layout configuration for the "Abandoned Boat" map room. It specifies the tilemap structure (including background tiles), object zones, and area definitions used by the world generation system to spawn the room in the game world. It is not a runtime component but a data file consumed by the worldgen system to instantiate the physical layout and associated gameplay elements (e.g., loot, interactive zones, scenery) when the room is placed.

The file is a Tiled map export (*.lua) formatted as a Lua table, containing tile layer data, object group definitions, and properties that guide spawning logic. It has no direct ECS component interaction during runtime; instead, it serves as input to room placement and entity instantiation logic elsewhere in the codebase (e.g., map/rooms/ or level/task loaders).

Usage example

This file is loaded by the world generation system and not directly instantiated in mod code. However, a typical workflow for referencing or extending it would look like:

local layout = require("map/static_layouts/abandonedboat")

-- Access layout properties (e.g., dimensions, object zones)
print("Room size:", layout.width, "x", layout.height)
print("First object zone type:", layout.layers[2].objects[1].type)

Dependencies & tags

Components used: None
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version
luaversionstring"5.1"Target Lua version for the exported table
orientationstring"orthogonal"Tilemap orientation type
widthnumber6Map width in tiles
heightnumber6Map height in tiles
tilewidthnumber64Width of each tile in pixels
tileheightnumber64Height of each tile in pixels
propertiestable{}Global map properties (empty in this case)
tilesetstable(see source)Array of tileset definitions
layerstable(see source)Array of map layers (background tiles + object group)

Main functions

This file returns a static Lua table and does not define any executable functions or methods. It is a data container only.

Events & listeners

This file does not register or emit any events. It is not active code and has no runtime behavior beyond providing layout data during map generation.