Skip to main content

Ruined Base

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

Overview​

ruined_base.lua is a static layout definition file for the Ruined Base area. It is not a component in the ECS sense but a Lua table (returned by a module) containing map geometry data imported from Tiled Map Editor. It specifies tile layer data for background tiles (BG_TILES) and object placement data (FG_OBJECTS) such as walls, skeletons, and construction areas. This file is used by the world generation system to reconstruct the Ruined Base environment in-game.

Usage example​

This file is not used directly as a component on an entity. Instead, it is loaded as data during world generation (e.g., via load_map_file("map/static_layouts/ruined_base.lua") internally). Modders should not call or modify this file directly — it is consumed by the engine’s map loading infrastructure.

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version used to serialize the map.
orientationstring"orthogonal"Map orientation type.
widthnumber24Map width in tiles.
heightnumber24Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetstable—Array of tileset definitions (includes image source and tile metadata).
layerstable—Array of layer definitions (tile layers and object groups).

Main functions​

Not applicable — this file exports a static data structure and does not define any functional methods.

Events & listeners​

Not applicable — no event handling or listeners are defined in this file.