当我尝试将对象层添加到我的TMX
地图文件时,尝试加载它时游戏会崩溃,但是当我删除对象层并保留其他瓦片层时,它会正常加载。是什么阻止我加载启用的对象层TMX
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="40" height="40" tilewidth="32" tileheight="32">
<tileset firstgid="1" name="tileset1" tilewidth="32" tileheight="32">
<image source="grfx/game/tmx/tileset1.png" trans="ff00ff" width="512" height="384"/>
</tileset>
<layer name="ground" width="40" height="40">
<properties>
<property name="hit" value="false"/>
</properties>
<data encoding="base64" compression="gzip">
H4sIAAAAAAAAC+3OoREAMAgEsDes0P1HxbAD5S4iPpWkAICvvLH98AMAAACuamnyeMoAGQAA
</data>
</layer>
<layer name="hill" width="40" height="40">
<properties>
<property name="hit" value="false"/>
</properties>
<data encoding="base64" compression="gzip">
H4sIAAAAAAAAC+3VsQkAIAxFwWytG+jYZgJBQVJ4B79P8SARAPBWy/XqIzZGblYfwbWTvipaPOlLi/zEbwAAAF5bWZ4LagAZAAA=
</data>
</layer>
<objectgroup name="hills" width="40" height="40">
<properties>
<property name="hit" value="true"/>
</properties>
<object x="101" y="452" width="51" height="56"/>
<object x="360" y="323" width="51" height="53"/>
<object x="454" y="453" width="57" height="53"/>
<object x="70" y="645" width="50" height="57"/>
<object x="260" y="394" width="56" height="86">
<ellipse/>
</object>
</objectgroup>
</map>
这个有效:
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="40" height="40" tilewidth="32" tileheight="32">
<tileset firstgid="1" name="tileset1" tilewidth="32" tileheight="32">
<image source="grfx/game/tmx/tileset1.png" trans="ff00ff" width="512" height="384"/>
</tileset>
<layer name="ground" width="40" height="40">
<properties>
<property name="hit" value="false"/>
</properties>
<data encoding="base64" compression="gzip">
H4sIAAAAAAAAC+3OoREAMAgEsDes0P1HxbAD5S4iPpWkAICvvLH98AMAAACuamnyeMoAGQAA
</data>
</layer>
<layer name="hill" width="40" height="40">
<properties>
<property name="hit" value="false"/>
</properties>
<data encoding="base64" compression="gzip">
H4sIAAAAAAAAC+3VsQkAIAxFwWytG+jYZgJBQVJ4B79P8SARAPBWy/XqIzZGblYfwbWTvipaPOlLi/zEbwAAAF5bWZ4LagAZAAA=
</data>
</layer>
</map>