使用flame_tiled插件加载一个平铺地图。通过TiledComponent加载地图,如下所示:
tiledComponent = TiledComponent("new4.tmx", Size(32.0,32.0));
add(tiledComponent);这在mobile.However上工作得很好,当使用颤振来获取以下错误时:
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following UnimplementedError was thrown during paint():
UnimplementedError和
The following RenderObject was being processed when the exception was fired: GameRenderBox#0eebf:
parentData: <none> (can use size)
constraints: BoxConstraints(w=929.0, h=932.0)
size: Size(929.0, 932.0)
This RenderObject has no descendants.
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: UnimplementedError如果没有添加' TiledComponent‘,并且只呈现了一些Sprite,那么它也可以在颤振web上工作,而不是在TiledComponent上工作。有解决办法吗?或者解决办法?
颤振通道β,1.23.0-18.1.预火焰0.28.0 flame_tiled 0.1.0.平铺0.6.0
https://stackoverflow.com/questions/64798011
复制相似问题