Added wizard room in dungeon.
Justin Armstrong justinmeister@gmail.com
Tue, 06 May 2014 10:22:11 -0700
4 files changed,
116 insertions(+),
9 deletions(-)
M
data/main.py
→
data/main.py
@@ -21,6 +21,7 @@ DUNGEON = 'dungeon'
DUNGEON2 = 'dungeon2' DUNGEON3 = 'dungeon3' DUNGEON4 = 'dungeon4' +DUNGEON5 = 'dungeon5' def main():@@ -41,7 +42,8 @@ BATTLE: battle.Battle(),
DUNGEON: levels.LevelState(DUNGEON, True), DUNGEON2: levels.LevelState(DUNGEON2, True), DUNGEON3: levels.LevelState(DUNGEON3, True), - DUNGEON4: levels.LevelState(DUNGEON4, True) + DUNGEON4: levels.LevelState(DUNGEON4, True), + DUNGEON5: levels.LevelState(DUNGEON5) } run_it.setup_states(state_dict, c.MAIN_MENU)
M
resources/tmx/dungeon2.tmx
→
resources/tmx/dungeon2.tmx
@@ -8,7 +8,7 @@ <image source="../graphics/tileset3.png" width="176" height="192"/>
</tileset> <layer name="Tile Layer 1" width="25" height="25"> <data encoding="base64" compression="zlib"> - eJzdlEEOABAMBPv/B3H2M1dppFm6K2jipJ1RGmb/RXFLwSguL+MYeStnWHFEfagds9wdvqqG9YYKPsJg8CMWk++Z2dm7xVEPOFR9zPjqmUL2GHyGR/WXZO4arT3lMCAvcjTAoe7j1eh1OlVd + eJzdlEEKACAIBP3/g+zey7qGiEjuSiV0Smc0JJH/Qs1hMNTkVRwzcHTMwXZ4uSd8Vg1idhY/w0DwIxaSb5nV3bvFMRocrDk8PnunMncIPsLD+ksqb52t7XJIIi9y7JxKL+jaF2IBx8lVXg== </data> </layer> <objectgroup name="Object Layer 1" width="25" height="25">@@ -123,8 +123,8 @@ <object name="blocker" gid="70" x="272" y="256"/>
<object name="blocker" gid="70" x="256" y="224"/> <object name="blocker" gid="70" x="256" y="224"/> <object name="blocker" gid="70" x="256" y="240"/> - <object name="portal" type="dungeon3" gid="89" x="352" y="64"/> - <object name="start point" gid="73" x="352" y="80"> + <object name="portal" type="dungeon3" gid="89" x="336" y="352"/> + <object name="start point" gid="73" x="336" y="368"> <properties> <property name="direction" value="down"/> <property name="state" value="dungeon3"/>
M
resources/tmx/dungeon3.tmx
→
resources/tmx/dungeon3.tmx
@@ -14,6 +14,11 @@ <data encoding="base64" compression="zlib">
eJztz80KgkAYheG5wmgpLaN9plaklT94F1r2cw+51ivzXYwwiAuhiSi+Aw8z3+pwlPpu1nCxgQcfAbbYYY/Dmx0hIhxxwhkxEqTIkP9IR4NWvzPMjbu11PFCrV8HC+OuLXWYO/oO2THeITumd8iO6R3/uGOJlfrsjj42dxQoccEVFW6444Gn/kskw3Q16m94 </data> </layer> + <layer name="Tile Layer 2" width="25" height="25"> + <data encoding="base64" compression="zlib"> + eJxjYBhc4DMQf6GxHV+B+BuN7fgOxD9obMcoGAWjYBSMglEwCkYuAACy2gXC + </data> + </layer> <objectgroup name="Object Layer 1" width="25" height="25"> <object name="portal" type="dungeon2" gid="89" x="176" y="304"/> <object name="portal" type="dungeon4" gid="89" x="192" y="304"/>@@ -73,10 +78,19 @@ <object name="blocker" gid="70" x="112" y="80"/>
<object name="blocker" gid="70" x="144" y="64"/> <object name="blocker" gid="70" x="112" y="112"/> <object name="blocker" gid="70" x="112" y="96"/> + <object name="portal" type="dungeon5" gid="89" x="176" y="64"/> + <object name="portal" type="dungeon5" gid="89" x="192" y="64"/> + <object name="start point" gid="73" x="176" y="80"> + <properties> + <property name="direction" value="down"/> + <property name="state" value="dungeon5"/> + </properties> + </object> + <object name="start point" gid="73" x="192" y="80"> + <properties> + <property name="direction" value="down"/> + <property name="state" value="dungeon5"/> + </properties> + </object> </objectgroup> - <layer name="Tile Layer 2" width="25" height="25"> - <data encoding="base64" compression="zlib"> - eJxjYBhc4DMQf6GxHV+B+BuN7fgOxD9obMcoGAWjYBSMglEwCkYuAACy2gXC - </data> - </layer> </map>
A
resources/tmx/dungeon5.tmx
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?> +<map version="1.0" orientation="orthogonal" width="25" height="19" tilewidth="16" tileheight="16" backgroundcolor="#130f30"> + <tileset firstgid="1" name="tileset2" tilewidth="16" tileheight="16"> + <image source="../graphics/tileset2.png" width="160" height="180"/> + </tileset> + <tileset firstgid="111" name="tileset3" tilewidth="16" tileheight="16"> + <image source="../graphics/tileset3.png" width="176" height="192"/> + </tileset> + <tileset firstgid="243" name="tileset1" tilewidth="16" tileheight="16"> + <image source="../graphics/tileset1.png" width="160" height="80"/> + </tileset> + <tileset firstgid="293" name="house" tilewidth="16" tileheight="16"> + <image source="../graphics/house.png" width="512" height="448"/> + </tileset> + <layer name="Tile Layer 1" width="25" height="19"> + <data encoding="base64" compression="zlib"> + eJxjYBgFo2B4AS5G0vCoHaN2kGuHH1DcH4gDsMiPglGADADKHgRp + </data> + </layer> + <layer name="Tile Layer 2" width="25" height="19"> + <data encoding="base64" compression="zlib"> + eJztzbkNwkAQRuHV9MHZB4fpA3P0wdkHlzswpEAxQAq0wAs2GGuyAbJ90hf8I60dQurbGhJCEy20xe4a6uruqce7PjIMxO4OuuruacS7MSaYit1D5OruacG7JVZYi90zzNXd0453exxQiN0bbNXd2w13POIucYxO/s9WeuKFd9xnXKLrj/6RSqX+3wd+4SIe + </data> + </layer> + <layer name="Tile Layer 3" width="25" height="19"> + <data encoding="base64" compression="zlib"> + eJxjYBgFo2BkgGImBoYSJuqaeQqNPxlo/hQq2zEKRsEoGPoAADzUAuE= + </data> + </layer> + <objectgroup name="Object Layer 1" width="25" height="19"> + <object name="sprite" type="oldmanbrother" gid="65" x="192" y="160"> + <properties> + <property name="dialogue length" value="1"/> + <property name="dialogue0" value="You will never have this crown!"/> + </properties> + </object> + <object name="start point" gid="73" x="192" y="224"> + <properties> + <property name="direction" value="up"/> + <property name="state" value="dungeon3"/> + </properties> + </object> + <object name="portal" type="dungeon3" gid="89" x="208" y="240"/> + <object name="portal" type="dungeon3" gid="89" x="192" y="240"/> + <object name="portal" type="dungeon3" gid="89" x="176" y="240"/> + <object name="blocker" gid="70" x="112" y="144"/> + <object name="blocker" gid="70" x="144" y="144"/> + <object name="blocker" gid="70" x="128" y="144"/> + <object name="blocker" gid="70" x="112" y="160"/> + <object name="blocker" gid="70" x="128" y="160"/> + <object name="blocker" gid="70" x="144" y="160"/> + <object name="blocker" gid="70" x="96" y="112"/> + <object name="blocker" gid="70" x="80" y="144"/> + <object name="blocker" gid="70" x="80" y="160"/> + <object name="blocker" gid="70" x="80" y="176"/> + <object name="blocker" gid="70" x="80" y="192"/> + <object name="blocker" gid="70" x="80" y="208"/> + <object name="blocker" gid="70" x="80" y="224"/> + <object name="blocker" gid="70" x="96" y="240"/> + <object name="blocker" gid="70" x="112" y="240"/> + <object name="blocker" gid="70" x="144" y="240"/> + <object name="blocker" gid="70" x="128" y="240"/> + <object name="blocker" gid="70" x="160" y="240"/> + <object name="blocker" gid="70" x="224" y="240"/> + <object name="blocker" gid="70" x="256" y="240"/> + <object name="blocker" gid="70" x="240" y="240"/> + <object name="blocker" gid="70" x="272" y="240"/> + <object name="blocker" gid="70" x="288" y="224"/> + <object name="blocker" gid="70" x="288" y="208"/> + <object name="blocker" gid="70" x="288" y="176"/> + <object name="blocker" gid="70" x="288" y="192"/> + <object name="blocker" gid="70" x="288" y="160"/> + <object name="blocker" gid="70" x="288" y="144"/> + <object name="blocker" gid="70" x="288" y="128"/> + <object name="blocker" gid="70" x="288" y="112"/> + <object name="blocker" gid="70" x="272" y="112"/> + <object name="blocker" gid="70" x="256" y="112"/> + <object name="blocker" gid="70" x="240" y="112"/> + <object name="blocker" gid="70" x="208" y="112"/> + <object name="blocker" gid="70" x="192" y="144"/> + <object name="blocker" gid="70" x="192" y="112"/> + <object name="blocker" gid="70" x="176" y="112"/> + <object name="blocker" gid="70" x="160" y="112"/> + <object name="blocker" gid="70" x="144" y="112"/> + <object name="blocker" gid="70" x="128" y="112"/> + <object name="blocker" gid="70" x="112" y="112"/> + <object name="blocker" gid="70" x="208" y="144"/> + <object name="blocker" gid="70" x="80" y="128"/> + <object name="blocker" gid="70" x="224" y="112"/> + </objectgroup> +</map>