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?
答案 0 :(得分:0)
首先,您必须在load
函数中将导出的地图从Tiled加载为Json格式。
第二,您需要使用适当的方法在create
函数中创建它。
在静态部分中查看https://labs.phaser.io/index.html?dir=game%20objects/tilemap/&q=,并告诉我