tiled-to-pixi:将Tiled的tmx映射转换为可立即使用的Pixi容器!

时间:2021-05-06 20:45:28
【文件属性】:
文件名称:tiled-to-pixi:将Tiled的tmx映射转换为可立即使用的Pixi容器!
文件大小:558KB
文件格式:ZIP
更新时间:2021-05-06 20:45:28
JavaScript 平铺到披溪 将Tiled tmx映射转换为准备使用的Pixi v5容器。 如何使用Tiled to Pixi 加载您的.tmx文件和必要的资源以使用PIXI.Loader渲染地图,然后让模块完成其余工作! import * as PIXI from 'pixi.js' import TiledMap from 'tiled-to-pixi' const app = new PIXI . Application ( ) document . body . appendChild ( app . view ) PIXI . Loader . shared . add ( 'assets/overworld.png' ) // Tileset to render both maps . add ( 'TestMap1' , 'maps/testmap1.tmx' ) . add
【文件预览】:
tiled-to-pixi-master
----.gitignore(593B)
----README.md(2KB)
----.vscode()
--------settings.json(40B)
----LICENSE(1KB)
----package.json(1KB)
----src()
--------TiledMap.js(2KB)
--------TileLayer.js(2KB)
--------TileSet.js(876B)
--------Tile.js(2KB)
--------CollisionLayer.js(1KB)
----example()
--------example.js(649B)
--------viewer()
----package-lock.json(179KB)

网友评论