Skip to main content

Pigguards B

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

Overview

This file (pigguards_b.lua) is a static map layout definition used by DST's world generation system. It is not a gameplay component or script that attaches to entities; rather, it is a Tiled Map Format (TMX) JSON/JSON-like structure that encodes visual and structural elements (tile layers and object groups) for an in-game arena — specifically, the Pig Guards combat zone. It contains background tile layers and foreground object definitions (like pigtorches and wooden walls) placed at specific grid coordinates.

Usage example

This file is not intended for direct modder use. It is loaded automatically by the engine during world generation when the corresponding static layout is referenced in a room or level taskset.

The file returns a Lua table describing the map layout, consumed internally by map/archive_worldgen.lua and related tools. Modders typically interact with such layouts indirectly via worldgen.lua overrides or custom scenario/taskset configurations.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"TMX format version.
luaversionstring"5.1"Lua version target for serialized data.
orientationstring"orthogonal"Tilemap orientation mode.
widthnumber40Map width in tiles.
heightnumber40Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Map-level custom properties (empty here).
tilesetsarraynon-emptyTileset definition(s) including image path and tile metrics.
layersarraynon-emptyArray of layers (tile layer + object group) containing layout content.

Main functions

Not applicable — this file returns a static data structure, not executable functions.

Events & listeners

Not applicable — no runtime behavior or event interaction is defined.