Skip to main content

Waterplant1

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

Overview

This file defines a static room layout for use in world generation. It is not a component in the Entity Component System (ECS), but a pure data structure describing tile placement and object positions for a room containing waterplants. It follows the Tiled map format (.tmx equivalent in Lua), specifying tile layers, object groups, and orientation metadata. This data is used by the map generation system to instantiate physical entities and terrain when spawning the waterplant room in the game world.

Usage example

-- This file is loaded by the map generation system during worldgen.
-- A typical integration point is within a task or room system that references this layout:
local waterplant_layout = require("map/static_layouts/waterplant1")
-- The engine interprets the returned table to build the room:
-- • BG_TILES layer determines floor tile IDs
-- • FG_OBJECTS objects define where waterplant prefabs are placed

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version target.
orientationstring"orthogonal"Tilemap rendering orientation.
widthnumber10Map width in tiles.
heightnumber10Map height in tiles.
tilewidthnumber64Width of each tile in pixels.
tileheightnumber64Height of each tile in pixels.
propertiestable{}Room-level metadata (empty here).
tilesetsarray{{...}}List of tileset definitions; here one set named "ground".
layersarray{{...},{...}}Contains "BG_TILES" (tile data) and "FG_OBJECTS" (entity placement).

Main functions

Not applicable. This file is a data-only module returning a static table; it contains no runtime functions.

Events & listeners

Not applicable. This file does not interact with events.

End of documentation.