Tiled TMX 🎮

Tiled TMX (Game Map)

Open Beta
.tmx · application/xml

将 OpenStreetMap 地图数据导出为 Tiled TMX,用于游戏开发。将真实世界的城市地图转换为瓦片地图,供 2D 游戏、RPG、策略游戏和模拟器使用。

立即导出 Tiled TMX ✨ Open Beta — 免费无限制

主要特点

基于真实地理数据的瓦片地图
独立图层(道路、建筑、水体、植被)
可配置瓦片尺寸(16×16、32×32、64×64)
含 POI 与属性的对象图层
Tiled TMX 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 Tiled TMX 格式

TMX is the open XML format of the Tiled editor: a grid of tiles, several layers and an object layer on top. It is read by Godot, by Unity through SuperTiled2Unity, by GameMaker, Cocos2d, LÖVE and a dozen other engines, and Tiled itself is free.

The export turns a real city into a game field: streets, blocks, water and greenery are laid out on the grid, and named objects become points on the level map. This is a starting point for a prototype, a simulator or an educational game about your own neighborhood — after that you finish it by hand.

The file holds three tile layers: ground (land and water), structures (buildings, roads, railways) and vegetation (green areas); the data is written in CSV encoding. Named objects are collected into the poi object layer with coordinates in pixels and a caption. The grid size is picked to match the area, up to 512 × 512 tiles, with a base cell of 32 × 32 pixels (16 or 64 can be chosen).

An important detail: the tileset is embedded in the file as a set of tile definitions with color properties, but without an atlas image. In Tiled the map will open and will be structurally correct, but the graphics have to be your own — replace the tileset with your own set of sprites.

打开 Tiled TMX 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 Tiled TMX (Game Map)(.tmx)文件:

💻Tiled Map Editor 💻RPG Maker 💻Godot 🎮Unity (SuperTiled2Unity) 💻GameMaker

格式规格

谁在使用 Tiled TMX 地图

🏗
二维游戏地图
A real city block becomes a game field with a ready grid of walkability and obstacles.
💻
角色扮演与策略游戏
A level base for an RPG or a strategy game where the city comes not out of your head but from real development.
📊
基于真实地图的游戏原型
A quick prototype: the game designer tests mechanics on a real layout without drawing the map by hand.
🎨
教育类游戏
An educational game about your home town — schoolchildren recognize streets and landmarks on the game field.

如何导出 Tiled TMX

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 Tiled TMX
从 127 种可用导出格式中选择 Tiled TMX (Game Map)
3
导出
点击导出,1–5 分钟内收到您的 .tmx 文件
4
下载
下载完成的 Tiled TMX 文件并在 Tiled Map Editor 中打开

导出后如何打开

Tiled TMX 格式的热门地图

Free

导出 Tiled TMX (Game Map) 地图

从 OpenStreetMap 下载专业的 Tiled TMX 地图。即时生成,任意区域。

免费 / 导出
立即导出 Tiled TMX →

常见问题

哪些游戏引擎支持 TMX?
我能使用自定义瓦片集吗?
支持多大的地图尺寸?
Why does the map open without graphics?
Which layers come in the file?

相关格式

经常一起导出

Related Articles