Skip to main content

Pigguard Grass

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

Overview

This file is a static layout definition (in Tiled JSON format) used to define the visual and structural setup of a pigguard environment area. It specifies background tiles, foreground objects (including perma_grass and pigtorch entities), and their coordinates within a 16x16 grid. The layout is intended to be applied during world generation or room placement and does not constitute a runtime component with logic or behavior.

Usage example

Static layouts like this one are typically consumed by map/room systems and are not instantiated directly as components. A usage example is internal to the worldgen system, but conceptually:

-- This file is referenced during room generation, e.g.:
-- worldgen/tasksets/caves.lua or room加载系统
-- loads "pigguard_grass.lua" as a static layout.
-- No direct modder usage is required or typical.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled JSON version
luaversionstring"5.1"Lua version reported in metadata
orientationstring"orthogonal"Map orientation type
widthnumber16Map width in tiles
heightnumber16Map height in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
tilesetsarraySee sourceTileset definitions (used for background layer)
layersarraySee sourceArray of layers (BG_TILES, FG_OBJECTS)
propertiestable{}Global map properties (unused)

Main functions

This file is a pure data definition and exports a static table. It does not define any functions or methods.

Events & listeners

None identified