tiled

You are a Tiled expert. Tiled is a free open-source 2D level editor for creating tile maps, placing objects, and designing game worlds. Help developers design levels using tile layers, object layers (for spawn points and triggers), terrain brushes (for auto-tiling), animated tiles, and custom properties, and export them as JSON or TMX for use in Phaser, Godot, Unity, PixiJS and other engines.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
7

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "tiled" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-934c1ea19c332c4b55039a927c29437234392b37a5d25b62f43bc09b8d0c32a2. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

You are a Tiled expert. Tiled is a free open-source 2D level editor for creating tile maps, placing objects, and designing game worlds. Help developers design levels using tile layers, object layers (for spawn points and triggers), terrain brushes (for auto-tiling), animated tiles, and custom properties, and export them as JSON or TMX for use in Phaser, Godot, Unity, PixiJS and other engines.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Software, accounts and paid services
1. Open tileset in Tiled 2. View → Terrain Sets 3. Mark tiles as corners/edges of each terrain type 4. Paint with terrain brush — Tiled handles tile selection
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: tiled
description: >-
  You are an expert in Tiled, the free and open-source 2D level editor for
  creating tilemaps, placing objects, and designing game worlds. You help game
  developers design levels with tile layers, object layers for spawn points
  and triggers, terrain brushes for auto-tiling, animated tiles, and custom
  properties — exporting to JSON or TMX for use in Phaser, Godot, Unity,
  PixiJS, and other engines.
license: Apache-2.0
compatibility: ''
metadata:
  author: terminal-skills
  version: 1.0.0
  category: Game Development
  tags:
    - level-editor
    - tilemap
    - game-design
    - 2d
    - map-editor
    - phaser
    - godot

Tiled — 2D Level Editor for Game Maps

You are an expert in Tiled, the free and open-source 2D level editor for creating tilemaps, placing objects, and designing game worlds. You help game developers design levels with tile layers, object layers for spawn points and triggers, terrain brushes for auto-tiling, animated tiles, and custom properties — exporting to JSON or TMX for use in Phaser, Godot, Unity, PixiJS, and other engines.

Core Capabilities

Tilemap Structure

## Tiled Map Anatomy

A Tiled map consists of:
- **Tilesets**: Sprite sheets cut into tiles (16×16, 32×32, etc.)
- **Tile layers**: Grid of tile IDs for rendering (ground, walls, decorations)
- **Object layers**: Free-form shapes for game logic (spawn points, triggers, paths)
- **Image layers**: Full images (parallax backgrounds, overlays)
- **Group layers**: Organize layers into folders

## Layer ordering (bottom to top):
1. Background (sky, distant mountains)
2. Ground (floor tiles, terrain)
3. Decoration-below (grass, flowers behind player)
4. Collision (invisible wall tiles)
5. Decoration-above (tree canopies, roofs over player)
6. Objects (spawn points, items, triggers)

Tileset Configuration

// tileset.tsj — Tiled tileset file
{
  "name": "dungeon",
  "tilewidth": 16,
  "tileheight": 16,
  "image": "dungeon-tileset.png",
  "imagewidth": 256,
  "imageheight": 256,
  "tilecount": 256,
  "columns": 16,
  "tiles": [
    {
      "id": 0,
      "type": "floor",
      "properties": [
        { "name": "walkable", "type": "bool", "value": true }
      ]
    },
    {
      "id": 16,
      "type": "wall",
      "properties": [
        { "name": "collides", "type": "bool", "value": true },
        { "name": "destructible", "type": "bool", "value": false }
      ]
    },
    {
      "id": 48,
      "type": "animated-torch",
      "animation": [
        { "tileid": 48, "duration": 200 },
        { "tileid": 49, "duration": 200 },
        { "tileid": 50, "duration": 200 },
        { "tileid": 51, "duration": 200 }
      ]
    }
  ]
}

Object Layers for Game Logic

// Objects in a Tiled map — exported as JSON
{
  "name": "GameObjects",
  "type": "objectgroup",
  "objects": [
    {
      "name": "PlayerSpawn",
      "type": "spawn",
      "x": 160,
      "y": 240,
      "properties": [
        { "name": "facing", "type": "string", "value": "right" }
      ]
    },
    {
      "name": "Chest",
      "type": "loot",
      "x": 320,
      "y": 112,
      "properties": [
        { "name": "lootTable", "type": "string", "value": "common" },
        { "name": "locked", "type": "bool", "value": true }
      ]
    },
    {
      "name": "BossZone",
      "type": "trigger",
      "x": 400,
      "y": 64,
      "width": 128,
      "height": 128,
      "properties": [
        { "name": "bossId", "type": "string", "value": "skeleton-king" },
        { "name": "oneShot", "type": "bool", "value": true }
      ]
    },
    {
      "name": "PatrolPath",
      "type": "path",
      "polyline": [
        { "x": 0, "y": 0 },
        { "x": 96, "y": 0 },
        { "x": 96, "y": 64 },
        { "x": 0, "y": 64 }
      ]
    }
  ]
}

Loading in Phaser

// Load Tiled map in Phaser
export class GameScene extends Phaser.Scene {
  create() {
    const map = this.make.tilemap({ key: "level-1" });
    const tileset = map.addTilesetImage("dungeon", "dungeon-tiles")!;

    // Create layers in order
    map.createLayer("Background", tileset);
    const ground = map.createLayer("Ground", tileset)!;
    const walls = map.createLayer("Walls", tileset)!;
    const decorAbove = map.createLayer("DecorationAbove", tileset);

    // Collision from tile properties
    walls.setCollisionByProperty({ collides: true });

    // Read object layer for spawn points
    const objects = map.getObjectLayer("GameObjects")!;
    objects.objects.forEach((obj) => {
      switch (obj.type) {
        case "spawn":
          this.spawnPlayer(obj.x!, obj.y!);
          break;
        case "loot":
          this.createChest(obj.x!, obj.y!, obj.properties);
          break;
        case "trigger":
          this.createTriggerZone(obj);
          break;
      }
    });

    // Decoration layer renders above player
    decorAbove?.setDepth(10);
  }
}

Auto-Tiling (Terrain)

## Terrain Brushes

Tiled's terrain system auto-selects the correct tile variant based on neighbors:
- Paint with "grass" terrain brush
- Tiled automatically picks corner, edge, and interior tiles
- Supports Wang tiles (blob/corner) for complex terrain transitions

## Setup:
1. Open tileset in Tiled
2. View → Terrain Sets
3. Mark tiles as corners/edges of each terrain type
4. Paint with terrain brush — Tiled handles tile selection

## Common terrain patterns:
- 16-tile minimal (corners + edges)
- 47-tile blob (all neighbor combinations)
- 15-tile Wang corner set

Installation

# Download from https://www.mapeditor.org/
# Available for Windows, macOS, Linux
# Also available on Steam and itch.io

# Export formats: JSON (.tmj), TMX (.tmx), CSV, Lua
# Most game engines prefer JSON export

Best Practices

  1. Consistent tile size — 16×16 for pixel art, 32×32 or 48×48 for HD; match your art pipeline
  2. Separate collision layer — Don't mix visual tiles with collision; use a dedicated invisible collision layer
  3. Object layers for logic — Spawn points, triggers, loot, paths belong in object layers with custom properties
  4. Custom properties — Attach metadata to tiles and objects (damage, lootTable, dialogId); read in engine
  5. Terrain brushes — Set up terrains for any tile transition (grass/dirt, water/land); saves hours of manual placement
  6. Layer groups — Organize complex maps into groups (Background, Gameplay, Foreground, Debug)
  7. Tile animations — Define animations in tileset (torches, water, flags); Phaser plays them automatically
  8. Export as JSON — JSON is supported by all major engines and is easy to parse in custom engines

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供关于 Tiled 2D 关卡编辑器的专业知识,涵盖瓦片地图创建、对象图层、地形笔刷、动画瓦片、自定义属性及导出格式等
  • 适用于游戏开发者,具有明确的高频刚需价值
Trigger Precision95/100

Highlights

  • description 在顶层 frontmatter 和 skill_body 内部均有完整描述
  • 覆盖多种使用场景(Phaser、Godot、Unity、PixiJS 等),触发词精准完整,边界清晰
Structure and Standards95/100

Highlights

  • 文档结构清晰,包含 Core Capabilities、Installation、Best Practices 等章节
  • 有详细的代码示例和配置说明,frontmatter 完整
Execution Reliability95/100

Highlights

  • 工具来源明确(Tiled 官网),参数正确
  • 覆盖主要使用场景和异常处理(如碰撞设置、对象读取),无不可逆操作
Evidence Verifiability (mean of the first four)95/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • www.mapeditor.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

1. Open tileset in Tiled 2. View → Terrain Sets 3. Mark tiles as corners/edges of each terrain type 4. Paint with terrain brush — Tiled handles tile selection

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.