Skip to main content

Simple Base

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

Overview​

simple_base.lua defines a static 24x24 grid-based map layout using Tiled Map Editor data. It specifies background tile configurations, foreground object placements (such as walls and construction areas), and associated metadata like tile size and orientation. This file is consumed during world generation to instantiate base-like structures in the game world.

This file is not an ECS component; it is a pure data definition for level geometry. It does not implement logic, attach components, or respond to events.

Usage example​

This file is loaded internally by the world generation system. Modders typically reference it as a template when creating custom static layouts.

-- Not used directly in mod code; loaded via worldgen/task system
-- Example conceptual usage:
-- local layout = require("map/static_layouts/simple_base")
-- -- layout.width, layout.height, layout.layers would be processed by the generator

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled export version.
luaversionstring"5.1"Lua version used for the export.
orientationstring"orthogonal"Map rendering orientation.
widthnumber24Map width in tiles.
heightnumber24Map height in tiles.
tilewidthnumber16Width of a single tile in pixels.
tileheightnumber16Height of a single tile in pixels.
tilesetstable—List of tileset definitions (e.g., tiles.png).
layerstable—List of layers (e.g., BG_TILES, FG_OBJECTS).

Main functions​

Not applicable. This file returns a static table of map data and contains no functions.

Events & listeners​

Not applicable.