add camera system and optimize y sorting for rendering

This commit is contained in:
Quillraven
2025-05-30 00:18:12 +02:00
parent dc905f9c07
commit bcbac0fa90
14 changed files with 272 additions and 93 deletions

View File

@@ -4,7 +4,7 @@
<tile id="1" type="Object">
<properties>
<property name="animation" value="IDLE"/>
<property name="speed" type="float" value="2"/>
<property name="speed" type="float" value="3.5"/>
</properties>
<image source="objects/player.png" width="32" height="32"/>
<objectgroup draworder="index" id="2">
@@ -20,6 +20,9 @@
</objectgroup>
</tile>
<tile id="3" type="Prop">
<properties>
<property name="sortOffsetY" type="int" value="8"/>
</properties>
<image source="objects/oak_tree.png" width="64" height="80"/>
<objectgroup draworder="index" id="2">
<object id="2" x="24" y="63">