FXGL
FXGL copied to clipboard
新版Tilde地图编辑器1.9.0 对象层类名由type更改为class,导致加载失败
Hi,
不好意思,我的汉语不好。我觉得 Tiled 1.9.0- 用了 "type",但是 1.9.0+ 现在用 "class" 。我要看看,谢谢。
If I understood correctly, it seems "type" has now been replaced with "class" in Tiled 1.9.0+. To adapt to this, whilst maintaining backwards-compatibility, I think the fix could be rather simple:
in TMXLevelLoader:
put("type", tiledObject.type)
// ++ put("type", tiledObject.typeClass)
I'll take a look at 1.9.0, thanks.
To get the latest build, you can use this:
<dependencies>
<dependency>
<groupId>com.github.almasb</groupId>
<artifactId>fxgl</artifactId>
<version>17+dev-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>oss.sonatype.org-snapshot</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
See if it works for your use case.
understand correctly
感谢老铁
爱你
Done in 17.2