TiledMap Assets
The TiledMap asset is a data format exported by Tiled Editor (Tiled v1.6.0 is supported by Cocos Creator 3.0).
Importing Map Assets
The assets required for using a map are:
.tmx
map data.png
atlas textures.tsx
tileset data configuration file (required for some tmx files)
Create TiledMap Assets
Drag the map asset from the Assets panel into the Tmx file
property of the created TiledMap component.
Storage in the Project
For efficient asset management, it is recommended to store the imported .tmx
, .tsx
and .png
files in a separate directory and not mixed with other assets. Note that it is important to manage the tmx
file and the tsx
file in the same directory, otherwise the assets may not be loaded correctly.