Skip to main content

Skeleton Rain Coat

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

Overview

./map/static_layouts/skeleton_rain_coat.lua defines a static map layout used in the Caves to place specific loot items (e.g., skeleton, raincoat, rainhat, cutgrass, pigskin) at fixed world coordinates. It is a JSON-compatible Tiled map file serialized as Lua, describing tile layers and object groups with no runtime logic or ECS components.

Usage example

This layout is not used directly as an ECS component. It is referenced and loaded by the worldgen system (e.g., via rooms/ or tasksets/ logic) to spawn pre-defined arrangements of prefabs in the game world.

-- Internally, this file is loaded as data during world generation:
local layout = require("map/static_layouts/skeleton_rain_coat")
-- The layout is parsed by the engine to spawn objects like:
-- spawnprefab("raincoat", x, y, z)
-- at the coordinates defined in the FG_OBJECTS group.

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"Map orientation type.
widthnumber12Map width in tiles.
heightnumber12Map height in tiles.
tilewidthnumber16Width per tile in pixels.
tileheightnumber16Height per tile in pixels.
propertiestable{}Map-level properties (unused here).
tilesetsarraysee sourceTileset definitions (unused in practice).
layersarraysee sourceLayer data: BG_TILES (empty) and FG_OBJECTS (object placements).

Main functions

Not applicable — this file defines a static data structure only.

Events & listeners

Not applicable — no runtime logic or event interaction.