Skip to main content

Lures And Worms

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

Overview​

This file defines a static map layout used for the Lures and Worms level in Don't Starve Together. It is a Tiled Map Editor format (.json-style Lua table) describing the level geometry, tile layers, and object placement zones. Unlike typical ECS components, this is a data-only structure consumed by the world generation system to construct the level geometry during map initialization. It contains no executable logic or entity behaviors; its sole purpose is to encode layout metadata for the level designer's intended configuration.

Usage example​

This file is not instantiated as an entity component. Instead, it is referenced by the level/task generation system. A typical usage pattern in worldgen code would be:

local layout = require "map/static_layouts/lures_and_worms"
-- The layout table is consumed by level loading utilities (e.g., level.lua or level_loader.lua)
-- No direct entity interaction is needed; placement is handled by level initialization routines.

Dependencies & tags​

Components used: None
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version
luaversionstring"5.1"Lua version compatibility
orientationstring"orthogonal"Tilemap rendering orientation
widthnumber12Map width in tiles
heightnumber12Map height in tiles
tilewidthnumber16Width of a single tile in pixels
tileheightnumber16Height of a single tile in pixels
propertiestable{}Global map properties (unused)
tilesetstable(see source)Array of tileset definitions; includes tile texture reference and dimensions
layerstable(see source)Array of layer objects: BG_TILES (background tile layer) and FG_OBJECTS (foreground object group)

Layers detail​

  • layers[1] (BG_TILES):
    • Type: "tilelayer"
    • Data: 12x12 grid (144 entries), all values 0 (empty/no tiles)
  • layers[2] (FG_OBJECTS):
    • Type: "objectgroup"
    • Contains one object named "" of type "lures": a rectangle positioned at (18,19) with size 151x156 pixels

Main functions​

This file is a static data structure and contains no functional methods.

Events & listeners​

None — this file is purely declarative data and does not register or emit any events.