Skip to main content

Wormhole Grass

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

Overview

This file is a static map layout definition for use in DST's world generation system. It specifies an 8×8 tile grid with a background layer (BG_TILES) filled entirely with empty tiles (value 0) and a foreground object group (FG_OBJECTS) containing a single marker object named wormhole_MARKER. It serves as a non-interactive, decorative or spatial placeholder—likely used during testing or as a minimal seed layout for wormhole-related map regions. It is not an Entity Component System component and does not define any runtime logic or entity behavior.

Usage example

This file is not used directly in Lua code as a component. Instead, it is loaded by DST's map generation system via the static_layouts loader (e.g., in tasksets/caves.lua or similar). To reference it programmatically in worldgen code:

local layout = require("map/static_layouts/wormhole_grass")
-- layout.version, layout.width, etc., are accessible for metadata inspection

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"TMX map format version.
luaversionstring"5.1"Lua version specified for tile data encoding.
orientationstring"orthogonal"Map rendering orientation.
widthnumber8Width of the map in tiles.
heightnumber8Height of the map in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetstable[{...}]Array of tileset definitions.
layerstable[{...}, {...}]Array of map layers (background tile layer and foreground object group).

Main functions

Not applicable — this file is a static data structure, not a component with executable methods.

Events & listeners

Not applicable — no events or listeners are involved.

Layers and objects

Layer: BG_TILES

  • Type: tilelayer
  • Size: 8×8 tiles
  • Encoding: Lua (inline array)
  • Content: All tile IDs are 0 (indicating empty space/no tile rendered).

Layer: FG_OBJECTS

  • Type: objectgroup
  • Objects:
    • wormhole_MARKER: A rectangle-shaped object at position (64, 64) with zero width/height, likely used as a positional anchor or debug marker. No custom properties are defined.

This file is typically used to define empty or minimal-layout map regions where structure or gameplay assets are intended to be injected procedurally by higher-level worldgen tasks, but a baseline layout is needed for Tiled/WorldGen consistency.