Skip to main content

Chessy 5

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

Overview

chessy_5.lua is a static map layout definition used by Don't Starve Together's world generation system. It defines a fixed 16x16 tile-based layout that includes background tile placement and object placements (such as flowers, statues, and chess pieces like knight and bishop) in a foreground object layer. This file is consumed by the map loading system (typically via static_layouts.lua consumers) to place decorative and thematic elements in the game world—specifically to evoke a chessboard-inspired aesthetic. It does not implement logic, nor is it an ECS component; rather, it is data that informs level construction.

Usage example

This file is not instantiated as a component but is loaded as a data structure during world generation. A typical usage is when a task or room generator calls STATIC_LAYOUTS["chessy_5"] to fetch and apply this layout. For reference, the structure is loaded as plain Lua table data:

local layout = require "map/static_layouts/chessy_5"
-- layout.version, layout.layers, layout.width, etc. are available
-- The layout is applied by passing it to the appropriate room or task generation helper

Note: Do not manually call require during gameplay initialization unless you are within the worldgen context. The engine handles loading and parsing such layouts internally.

Dependencies & tags

Components used: None (this is data-only, not an ECS component). Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version
luaversionstring"5.1"Lua version requirement
orientationstring"orthogonal"Map rendering orientation
widthnumber16Map width in tiles
heightnumber16Map height in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
propertiestable{}Unused custom map properties
tilesetstableSee sourceTileset definition (single set: tiles.png)
layerstableSee sourceArray of layers (2 layers: BG_TILES, FG_OBJECTS)

Main functions

This file defines no functions—only static data. It returns a Lua table literal and is intended for loading by the map/system code. No methods or callable functions exist within.

Events & listeners

No events or listeners are associated with this file, as it is a static layout data definition and does not participate in runtime logic.