Skip to main content

Default Start

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

Overview

This component defines the static map layout for the default starting area of a new world. It specifies background tile placements and foreground object placements such as spawn points and welcome items using the Tiled Map Editor format. This file is used during world generation to populate the initial area with foundational environmental and gameplay elements, including multi-player portal and player spawn locations.

Usage example

This file is not instantiated as an ECS component and is instead returned as a raw table structure. It is consumed internally by the world generation system, not directly by modders. However, modders may reference its structure when defining custom start layouts:

-- Example: Custom start layout structure matching the expected format
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 16,
height = 16,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
image = "path/to/tileset.png",
tiles = {}
}
},
layers = {
{
type = "tilelayer",
name = "BG_TILES",
data = { ... }
},
{
type = "objectgroup",
name = "FG_OBJECTS",
objects = {
{ name = "", type = "spawnpoint_master", x = 160, y = 160 },
{ name = "", type = "multiplayer_portal", x = 160, y = 160 }
}
}
}
}

Dependencies & tags

Components used: None identified.
Tags: None identified.

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled version compatibility
luaversionstring"5.1"Lua version used for encoding
orientationstring"orthogonal"Map projection type
widthnumber16Map width in tiles
heightnumber16Map height in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
propertiestable{}Global map properties (unused in this file)
tilesetstable of tileset definitions(see source)Tileset metadata and references
layerstable of layer definitions(see source)Layer array containing tile and object layers

Main functions

This file is a data definition and contains no executable functions or methods.

Events & listeners

No events or listeners are defined or used in this file.