all repos — Legends-RPG @ 680235e09a98538dcc6f7165b3f8186889ed6ba5

A fantasy mini-RPG built with Python and Pygame.

resources/tmx/castle.tmx (view raw)

  1<?xml version="1.0" encoding="UTF-8"?>
  2<map version="1.0" orientation="orthogonal" width="25" height="27" tilewidth="16" tileheight="16" backgroundcolor="#130f30">
  3 <tileset firstgid="1" name="tileset2" tilewidth="16" tileheight="16">
  4  <image source="../graphics/tileset2.png" width="160" height="180"/>
  5 </tileset>
  6 <tileset firstgid="111" name="tileset3" tilewidth="16" tileheight="16">
  7  <image source="../graphics/tileset3.png" width="176" height="192"/>
  8 </tileset>
  9 <layer name="Tile Layer 1" width="25" height="27">
 10  <data encoding="base64" compression="zlib">
 11   eJxjYBh+IB+Ii4C4GIhLoOwCIC4kkl0KxS147KgC4gYgrgbiGiCuJZHdAMXE2IEL1yJhfOoI2bGdCniw2nEIB6a2P/yA2B8JB9DAjgggjkTCUaN2jNpBZTtqh4k/Ru0YtWMk2jGbAbXtg9wGSgLiZCScApUDtXXKgLgcSi8lYAetAAB7/gvf
 12  </data>
 13 </layer>
 14 <layer name="Tile Layer 2" width="25" height="27">
 15  <data encoding="base64" compression="zlib">
 16   eJxjYBgF5IIeJHYvEruPRDX4wHQk9gwk9kwS1YyCUTAKRgEhEDnQDhgFo2AUjEgAAF4VBzg=
 17  </data>
 18 </layer>
 19 <objectgroup name="Object Layer 1" width="25" height="27">
 20  <object name="start point" gid="73" x="192" y="416">
 21   <properties>
 22    <property name="direction" value="up"/>
 23    <property name="state" value="town"/>
 24   </properties>
 25  </object>
 26  <object name="portal" type="town" gid="89" x="224" y="432"/>
 27  <object name="portal" type="town" gid="89" x="208" y="432"/>
 28  <object name="portal" type="town" gid="89" x="192" y="432"/>
 29  <object name="portal" type="town" gid="89" x="176" y="432"/>
 30  <object name="portal" type="town" gid="89" x="160" y="432"/>
 31  <object name="blocker" gid="70" x="240" y="416"/>
 32  <object name="blocker" gid="70" x="272" y="416"/>
 33  <object name="blocker" gid="70" x="256" y="416"/>
 34  <object name="blocker" gid="70" x="288" y="416"/>
 35  <object name="blocker" gid="70" x="304" y="416"/>
 36  <object name="blocker" gid="70" x="320" y="416"/>
 37  <object name="blocker" gid="70" x="336" y="400"/>
 38  <object name="blocker" gid="70" x="336" y="384"/>
 39  <object name="blocker" gid="70" x="336" y="352"/>
 40  <object name="blocker" gid="70" x="336" y="368"/>
 41  <object name="blocker" gid="70" x="336" y="336"/>
 42  <object name="blocker" gid="70" x="336" y="320"/>
 43  <object name="blocker" gid="70" x="336" y="304"/>
 44  <object name="blocker" gid="70" x="336" y="272"/>
 45  <object name="blocker" gid="70" x="336" y="288"/>
 46  <object name="blocker" gid="70" x="336" y="240"/>
 47  <object name="blocker" gid="70" x="336" y="256"/>
 48  <object name="blocker" gid="70" x="336" y="208"/>
 49  <object name="blocker" gid="70" x="336" y="224"/>
 50  <object name="blocker" gid="70" x="336" y="192"/>
 51  <object name="blocker" gid="70" x="336" y="160"/>
 52  <object name="blocker" gid="70" x="336" y="176"/>
 53  <object name="blocker" gid="70" x="336" y="144"/>
 54  <object name="blocker" gid="70" x="336" y="112"/>
 55  <object name="blocker" gid="70" x="336" y="128"/>
 56  <object name="blocker" gid="70" x="336" y="96"/>
 57  <object name="blocker" gid="70" x="320" y="80"/>
 58  <object name="blocker" gid="70" x="304" y="80"/>
 59  <object name="blocker" gid="70" x="288" y="80"/>
 60  <object name="blocker" gid="70" x="272" y="80"/>
 61  <object name="blocker" gid="70" x="256" y="80"/>
 62  <object name="blocker" gid="70" x="240" y="80"/>
 63  <object name="blocker" gid="70" x="224" y="80"/>
 64  <object name="blocker" gid="70" x="208" y="80"/>
 65  <object name="blocker" gid="70" x="192" y="80"/>
 66  <object name="blocker" gid="70" x="176" y="80"/>
 67  <object name="blocker" gid="70" x="160" y="80"/>
 68  <object name="blocker" gid="70" x="144" y="80"/>
 69  <object name="blocker" gid="70" x="128" y="80"/>
 70  <object name="blocker" gid="70" x="112" y="80"/>
 71  <object name="blocker" gid="70" x="96" y="80"/>
 72  <object name="blocker" gid="70" x="80" y="80"/>
 73  <object name="blocker" gid="70" x="64" y="80"/>
 74  <object name="blocker" gid="70" x="48" y="96"/>
 75  <object name="blocker" gid="70" x="48" y="96"/>
 76  <object name="blocker" gid="70" x="48" y="112"/>
 77  <object name="blocker" gid="70" x="48" y="128"/>
 78  <object name="blocker" gid="70" x="48" y="144"/>
 79  <object name="blocker" gid="70" x="48" y="160"/>
 80  <object name="blocker" gid="70" x="48" y="176"/>
 81  <object name="blocker" gid="70" x="48" y="192"/>
 82  <object name="blocker" gid="70" x="48" y="208"/>
 83  <object name="blocker" gid="70" x="48" y="224"/>
 84  <object name="blocker" gid="70" x="48" y="240"/>
 85  <object name="blocker" gid="70" x="48" y="256"/>
 86  <object name="blocker" gid="70" x="48" y="272"/>
 87  <object name="blocker" gid="70" x="48" y="288"/>
 88  <object name="blocker" gid="70" x="48" y="304"/>
 89  <object name="blocker" gid="70" x="48" y="320"/>
 90  <object name="blocker" gid="70" x="48" y="336"/>
 91  <object name="blocker" gid="70" x="48" y="352"/>
 92  <object name="blocker" gid="70" x="48" y="368"/>
 93  <object name="blocker" gid="70" x="48" y="384"/>
 94  <object name="blocker" gid="70" x="48" y="400"/>
 95  <object name="blocker" gid="70" x="64" y="416"/>
 96  <object name="blocker" gid="70" x="80" y="416"/>
 97  <object name="blocker" gid="70" x="96" y="416"/>
 98  <object name="blocker" gid="70" x="112" y="416"/>
 99  <object name="blocker" gid="70" x="128" y="416"/>
100  <object name="blocker" gid="70" x="144" y="416"/>
101  <object name="sprite" type="soldier" gid="74" x="256" y="368">
102   <properties>
103    <property name="dialogue length" value="1"/>
104    <property name="dialogue0" value="Hail to the King!"/>
105    <property name="direction" value="left"/>
106   </properties>
107  </object>
108  <object name="sprite" type="soldier" gid="74" x="256" y="304">
109   <properties>
110    <property name="dialogue length" value="1"/>
111    <property name="dialogue0" value="Hail to the King!"/>
112    <property name="direction" value="left"/>
113   </properties>
114  </object>
115  <object name="sprite" type="soldier" gid="74" x="256" y="336">
116   <properties>
117    <property name="dialogue length" value="1"/>
118    <property name="dialogue0" value="Hail to the King!"/>
119    <property name="direction" value="left"/>
120   </properties>
121  </object>
122  <object name="sprite" type="soldier" gid="74" x="256" y="240">
123   <properties>
124    <property name="dialogue length" value="1"/>
125    <property name="dialogue0" value="Hail to the King!"/>
126    <property name="direction" value="left"/>
127   </properties>
128  </object>
129  <object name="sprite" type="soldier" gid="74" x="128" y="368">
130   <properties>
131    <property name="dialogue length" value="1"/>
132    <property name="dialogue0" value="Hail to the King!"/>
133    <property name="direction" value="right"/>
134   </properties>
135  </object>
136  <object name="sprite" type="soldier" gid="74" x="256" y="208">
137   <properties>
138    <property name="dialogue length" value="1"/>
139    <property name="dialogue0" value="Hail to the King!"/>
140    <property name="direction" value="left"/>
141   </properties>
142  </object>
143  <object name="sprite" type="soldier" gid="74" x="256" y="272">
144   <properties>
145    <property name="dialogue length" value="1"/>
146    <property name="dialogue0" value="Hail to the King!"/>
147    <property name="direction" value="left"/>
148   </properties>
149  </object>
150  <object name="sprite" type="soldier" gid="74" x="256" y="176">
151   <properties>
152    <property name="dialogue length" value="1"/>
153    <property name="dialogue0" value="Hail to the King!"/>
154    <property name="direction" value="left"/>
155   </properties>
156  </object>
157  <object name="sprite" type="soldier" gid="74" x="256" y="144">
158   <properties>
159    <property name="dialogue length" value="1"/>
160    <property name="dialogue0" value="Hail to the King!"/>
161    <property name="direction" value="left"/>
162   </properties>
163  </object>
164  <object name="sprite" type="king" gid="74" x="192" y="112">
165   <properties>
166    <property name="dialogue length" value="6"/>
167    <property name="dialogue0" value="Please!  You must help me!"/>
168    <property name="dialogue1" value="An evil sorceror has stolen my magic crown."/>
169    <property name="dialogue2" value="WIthout it, our town will be overrun by monsters!"/>
170    <property name="dialogue3" value="Go to the NorthWest Castle and retrieve it for me."/>
171    <property name="dialogue4" value="Here is some GOLD for supplies."/>
172    <property name="dialogue5" value="You are my only hope."/>
173   </properties>
174  </object>
175  <object name="sprite" type="soldier" gid="74" x="128" y="336">
176   <properties>
177    <property name="dialogue length" value="1"/>
178    <property name="dialogue0" value="Hail to the King!"/>
179    <property name="direction" value="right"/>
180   </properties>
181  </object>
182  <object name="sprite" type="soldier" gid="74" x="128" y="304">
183   <properties>
184    <property name="dialogue length" value="1"/>
185    <property name="dialogue0" value="Hail to the King!"/>
186    <property name="direction" value="right"/>
187   </properties>
188  </object>
189  <object name="sprite" type="soldier" gid="74" x="128" y="272">
190   <properties>
191    <property name="dialogue length" value="1"/>
192    <property name="dialogue0" value="Hail to the King!"/>
193    <property name="direction" value="right"/>
194   </properties>
195  </object>
196  <object name="sprite" type="soldier" gid="74" x="128" y="208">
197   <properties>
198    <property name="dialogue length" value="1"/>
199    <property name="dialogue0" value="Hail to the King!"/>
200    <property name="direction" value="right"/>
201   </properties>
202  </object>
203  <object name="sprite" type="soldier" gid="74" x="128" y="240">
204   <properties>
205    <property name="dialogue length" value="1"/>
206    <property name="dialogue0" value="Hail to the King!"/>
207    <property name="direction" value="right"/>
208   </properties>
209  </object>
210  <object name="sprite" type="soldier" gid="74" x="128" y="144">
211   <properties>
212    <property name="dialogue length" value="1"/>
213    <property name="dialogue0" value="Hail to the King!"/>
214    <property name="direction" value="right"/>
215   </properties>
216  </object>
217  <object name="sprite" type="soldier" gid="74" x="128" y="176">
218   <properties>
219    <property name="dialogue length" value="1"/>
220    <property name="dialogue0" value="Hail to the King!"/>
221    <property name="direction" value="right"/>
222   </properties>
223  </object>
224 </objectgroup>
225</map>