Add new maps and tileset for the game world

- Created room1.tmx and room1.lua for the first room in the game, including tiles, collision objects, and NPCs.
- Added room2.tmx and room2.lua for the second room, featuring tiles, collision objects, and an enemy.
- Introduced a world template to manage map transitions and layout.
- Implemented a new tileset (castle.tsx and castle.lua) for the castle theme, including tile properties and image references.
This commit is contained in:
2026-05-01 17:43:39 +02:00
parent ca9edf5f0c
commit 1b6eb9152c
35 changed files with 1747 additions and 4 deletions

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="20" height="12" tilewidth="40" tileheight="40" infinite="0" nextlayerid="6" nextobjectid="12">
<editorsettings>
<export target="room2.lua" format="lua"/>
</editorsettings>
<properties>
<property name="name" value="Test Map - Room 2"/>
</properties>
<tileset firstgid="1" source="../tilesets/castle.tsx"/>
<layer id="1" name="tiles" width="20" height="12">
<data encoding="csv">
0,0,0,0,22,23,23,23,23,23,23,23,23,23,23,23,23,23,24,0,
0,0,0,0,22,23,23,23,23,23,23,23,23,23,23,23,23,23,24,0,
0,0,0,0,26,27,27,27,27,27,27,27,27,27,27,27,27,27,28,0,
0,0,0,0,6,7,7,7,7,7,7,7,7,7,7,7,7,7,8,0,
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
0,0,0,0,10,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
7,7,7,7,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,0,
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,16,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<layer id="2" name="decal" width="20" height="12">
<data encoding="csv">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,30,31,32,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,34,35,36,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,38,39,40,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</data>
</layer>
<objectgroup color="#0000ff" id="3" name="collision" opacity="0.5">
<object id="1" x="120" y="120" width="40" height="200"/>
<object id="2" x="0" y="400" width="760" height="40"/>
<object id="3" x="760" y="120" width="40" height="280"/>
<object id="4" x="160" y="80" width="600" height="40"/>
<object id="7" x="0" y="280" width="120" height="40"/>
</objectgroup>
<objectgroup color="#7f00ff" id="4" name="markers">
<object id="5" name="spawn" x="360" y="240">
<point/>
</object>
<object id="8" name="entry" x="40" y="360">
<point/>
</object>
</objectgroup>
<objectgroup color="#ff00ff" id="5" name="objects">
<object id="6" name="enemy" x="530" y="220" width="40" height="40">
<properties>
<property name="actor" value="dummy"/>
<property name="encounter" value="dummy"/>
</properties>
</object>
<object id="9" name="transition" x="-40" y="320" width="40" height="80">
<properties>
<property name="map" value="room1"/>
<property name="marker" value="entry"/>
</properties>
</object>
</objectgroup>
</map>