Skip to main content

Symmetry Test

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

Overview

symmetry_test.lua is a static layout definition used internally for testing map rendering symmetry and object alignment. It defines a 20x20 tile grid (16x16 pixels per tile) with background tile data and foreground object placements. The file does not implement any ECS component logic — it is a pure data structure, typically loaded by world generation or testing tools to verify symmetric placement of entities and tiles.

Usage example

This file is not intended for direct component usage. It is returned as a Lua table by map loading systems and consumed by the world generation pipeline. Example usage in a test context:

-- Simulate loading and inspecting the layout
local layout = require("map/static_layouts/symmetry_test")
print("Width:", layout.width, "Height:", layout.height)
-- Output: Width: 20 Height: 20

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua version compatibility target.
orientationstring"orthogonal"Map orientation type.
widthnumber20Map width in tiles.
heightnumber20Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Global map properties (empty in this layout).
tilesetstableNon-empty arrayTileset definitions including ground tiles.
layerstableNon-empty arrayLayer definitions: BG_TILES and FG_OBJECTS.

Main functions

Not applicable.

Events & listeners

Not applicable.