diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:19:15 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:19:15 -0500 |
commit | ca4935cb65325edbd45d4a3aacc921ea9ed9483b (patch) | |
tree | 28376ffac0f817fc3f1f7290745e91d603fd59e8 /res/maps | |
parent | 996076cf151a27a7a8d278aa4d15b28cfb196c46 (diff) | |
download | tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.tar.gz tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.tar.bz2 tanetane-ca4935cb65325edbd45d4a3aacc921ea9ed9483b.zip |
Added enclosure zones
A sprite with an enclosure zone will collide with it if it attempts to leave the area defined by the zone. This is used to make sure that wandering sprites don't end up in weird places.
Diffstat (limited to 'res/maps')
-rw-r--r-- | res/maps/map2.tmx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/maps/map2.tmx b/res/maps/map2.tmx index 594fd93..87dbb1e 100644 --- a/res/maps/map2.tmx +++ b/res/maps/map2.tmx | |||
@@ -1,5 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="64" height="64" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="12"> | 2 | <map version="1.4" tiledversion="1.4.3" orientation="orthogonal" renderorder="right-down" width="64" height="64" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="13"> |
3 | <tileset firstgid="1" name="fromRom" tilewidth="16" tileheight="16" tilecount="180" columns="10"> | 3 | <tileset firstgid="1" name="fromRom" tilewidth="16" tileheight="16" tilecount="180" columns="10"> |
4 | <image source="map2_tiles.png" width="160" height="288"/> | 4 | <image source="map2_tiles.png" width="160" height="288"/> |
5 | <tile id="61"> | 5 | <tile id="61"> |
@@ -695,6 +695,7 @@ | |||
695 | <property name="collisionOffsetX" type="int" value="-8"/> | 695 | <property name="collisionOffsetX" type="int" value="-8"/> |
696 | <property name="collisionOffsetY" type="int" value="-8"/> | 696 | <property name="collisionOffsetY" type="int" value="-8"/> |
697 | <property name="collisionWidth" type="int" value="12"/> | 697 | <property name="collisionWidth" type="int" value="12"/> |
698 | <property name="enclosureZone" value="ionia_enclosure"/> | ||
698 | <property name="shadow" type="bool" value="true"/> | 699 | <property name="shadow" type="bool" value="true"/> |
699 | <property name="wander" type="bool" value="true"/> | 700 | <property name="wander" type="bool" value="true"/> |
700 | </properties> | 701 | </properties> |
@@ -703,6 +704,7 @@ | |||
703 | <object id="11" name="debugWarp_rightside" type="warp" x="911.333" y="431.667"> | 704 | <object id="11" name="debugWarp_rightside" type="warp" x="911.333" y="431.667"> |
704 | <point/> | 705 | <point/> |
705 | </object> | 706 | </object> |
707 | <object id="12" name="ionia_enclosure" type="zone" x="800" y="80" width="96" height="96"/> | ||
706 | </objectgroup> | 708 | </objectgroup> |
707 | <layer id="1" name="Layer 0" width="64" height="64"> | 709 | <layer id="1" name="Layer 0" width="64" height="64"> |
708 | <data encoding="csv"> | 710 | <data encoding="csv"> |