tiled
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tiled":https://skillpi.com/zh/skills/deepskill-934c1ea19c332c4b55039a927c29437234392b37a5d25b62f43bc09b8d0c32a2。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
你是 Tiled 专家,Tiled 是一款用于创建瓦片地图、放置对象和设计游戏世界的免费开源 2D 关卡编辑器。帮助开发者使用瓦片图层、对象图层(用于出生点和触发器)、地形笔刷(用于自动拼接)、动画瓦片及自定义属性来设计关卡,并将其导出为 JSON 或 TMX 格式以供 Phaser、Godot、Unity、PixiJS 等引擎使用。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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
- godotTiled — 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
- Consistent tile size — 16×16 for pixel art, 32×32 or 48×48 for HD; match your art pipeline
- Separate collision layer — Don't mix visual tiles with collision; use a dedicated invisible collision layer
- Object layers for logic — Spawn points, triggers, loot, paths belong in object layers with custom properties
- Custom properties — Attach metadata to tiles and objects (damage, lootTable, dialogId); read in engine
- Terrain brushes — Set up terrains for any tile transition (grass/dirt, water/land); saves hours of manual placement
- Layer groups — Organize complex maps into groups (Background, Gameplay, Foreground, Debug)
- Tile animations — Define animations in tileset (torches, water, flags); Phaser plays them automatically
- Export as JSON — JSON is supported by all major engines and is easy to parse in custom engines
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供关于 Tiled 2D 关卡编辑器的专业知识,涵盖瓦片地图创建、对象图层、地形笔刷、动画瓦片、自定义属性及导出格式等
- 适用于游戏开发者,具有明确的高频刚需价值
亮点
- description 在顶层 frontmatter 和 skill_body 内部均有完整描述
- 覆盖多种使用场景(Phaser、Godot、Unity、PixiJS 等),触发词精准完整,边界清晰
亮点
- 文档结构清晰,包含 Core Capabilities、Installation、Best Practices 等章节
- 有详细的代码示例和配置说明,frontmatter 完整
亮点
- 工具来源明确(Tiled 官网),参数正确
- 覆盖主要使用场景和异常处理(如碰撞设置、对象读取),无不可逆操作
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- www.mapeditor.org
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。