Skip to main content

Teleportato Crank Layout

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

Overview

This file defines a static layout for the Teleportato crank area in the game world. It is not a component in the ECS sense but rather a Tiled map data structure (JSON-compatible Lua table) used by the world generation system to place visual tiles and game objects (e.g., teleportato_crank, flower_evil, pighouse) at fixed coordinates during level construction. The layout includes a background tile layer (BG_TILES) and an object layer (FG_OBJECTS) specifying entity placements.

Usage example

Static layouts like this are typically loaded and processed internally by the worldgen system during map construction. Modders do not manually instantiate them. Example usage in worldgen context:

-- Internally used by worldgen/levels/specific_world.lua
local layout = require "map/static_layouts/teleportato_crank_layout"
WorldGen.AddStaticLayout(layout)

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version expected by the map.
orientationstring"orthogonal"Map orientation type.
widthnumber28Map width in tiles.
heightnumber28Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Global map properties (empty).
tilesetstablesee sourceArray of tileset definitions (e.g., ground tileset).
layerstablesee sourceArray of layers: BG_TILES (tile layer), FG_OBJECTS (object group).

Main functions

Not applicable — this is a static data structure, not a component with functions.

Events & listeners

Not applicable — no events are defined or referenced in this layout file.