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

关于 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)文件:
格式规格
- 开放标准
- 仅 2D
- 无损(无质量损失)
- 存储要素属性
- 输出:1 个文件
- Tiled Map Editor TMX (open spec) — one .tmx file with the tileset embedded. Game-development format for 2D pixel maps.
谁在使用 Tiled TMX 地图
如何导出 Tiled TMX
导出后如何打开
- Tiled Map Editor — File → Open; layers, grid and objects are visible right away. To get graphics, add your own tileset and remap the tile identifiers onto it.
- Godot — import TMX through a plugin or convert it into a TileMap; the object layer is convenient to turn into markers, spawn points and triggers.
- Unity — the SuperTiled2Unity package reads .tmx directly: put the file and your tileset into Assets and the map prefab builds itself.
- Phaser, LÖVE, Cocos2d, GameMaker — all of them have TMX loaders; for Phaser it is easier to re-save the map from Tiled into JSON first.
- Editing before the build — the tile size is set at export time, and a level that is too large is cut down in Tiled itself or by reducing the selected area.
Tiled TMX 格式的热门地图
导出 Tiled TMX (Game Map) 地图
从 OpenStreetMap 下载专业的 Tiled TMX 地图。即时生成,任意区域。