How Can I Use Tiled In Phaser 3, Using JSON Format?

时间:2019-04-17 00:46:04

标签: phaser-framework tiled

For a while now, I've been trying to load a json tilemap from tiled into Phaser 3. I have tried many different things from online, but none of them seem to work. Can somebody help me?

1 个答案:

答案 0 :(得分:0)

首先,您必须在load函数中将导出的地图从Tiled加载为Json格式。

第二,您需要使用适当的方法在create函数中创建它。

在静态部分中查看https://labs.phaser.io/index.html?dir=game%20objects/tilemap/&q=,并告诉我