diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/entities.xml | 31 | ||||
-rw-r--r-- | res/maps.xml | 2 |
2 files changed, 23 insertions, 10 deletions
diff --git a/res/entities.xml b/res/entities.xml index c3dd3f3..8f71062 100644 --- a/res/entities.xml +++ b/res/entities.xml | |||
@@ -1,12 +1,8 @@ | |||
1 | <?xml version="1.0" encoding="ISO-8859-1"?> | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
2 | <entities> | 2 | <entities> |
3 | <entity id="checkpoint" name="Checkpoint" sprite="res/keyring.png" width="8" height="11"> | 3 | <entity id="checkpoint" name="Checkpoint" sprite="res/keyring.png" width="8" height="11" action="save" /> |
4 | <event name="touch"> | ||
5 | <action type="save" /> | ||
6 | </event> | ||
7 | </entity> | ||
8 | 4 | ||
9 | <entity id="movplat" name="Moving Platform" sprite="res/platform.png" action="carry" width="24" height="8"> | 5 | <entity id="movplat" name="Moving Platform" sprite="res/platform.png" width="24" height="8" action="carry"> |
10 | <input id="dir" name="Direction" type="choice"> | 6 | <input id="dir" name="Direction" type="choice"> |
11 | <value id="0">Left</value> | 7 | <value id="0">Left</value> |
12 | <value id="1">Right</value> | 8 | <value id="1">Right</value> |
@@ -15,8 +11,25 @@ | |||
15 | </input> | 11 | </input> |
16 | <input id="len" name="Length" type="slider" minvalue="0" maxvalue="320" /> | 12 | <input id="len" name="Length" type="slider" minvalue="0" maxvalue="320" /> |
17 | <input id="speed" name="Speed (px/s)" type="slider" minvalue="1" maxvalue="320" /> | 13 | <input id="speed" name="Speed (px/s)" type="slider" minvalue="1" maxvalue="320" /> |
18 | <event name="touch"> | 14 | <ai chance="1"> |
19 | <action type="carry" /> | 15 | <switch item="dir"> |
20 | </event> | 16 | <case value="0"> |
17 | <move direction="left" length-var="len" speed-var="speed" /> | ||
18 | <move direction="right" length-var="len" speed-var="speed" /> | ||
19 | </case> | ||
20 | <case value="1"> | ||
21 | <move direction="right" length-var="len" speed-var="speed" /> | ||
22 | <move direction="left" length-var="len" speed-var="speed" /> | ||
23 | </case> | ||
24 | <case value="2"> | ||
25 | <move direction="up" length-var="len" speed-var="speed" /> | ||
26 | <move direction="down" length-var="len" speed-var="speed" /> | ||
27 | </case> | ||
28 | <case value="3"> | ||
29 | <move direction="down" length-var="len" speed-var="speed" /> | ||
30 | <move direction="up" length-var="len" speed-var="speed" /> | ||
31 | </case> | ||
32 | </switch> | ||
33 | </ai> | ||
21 | </entity> | 34 | </entity> |
22 | </entities> | 35 | </entities> |
diff --git a/res/maps.xml b/res/maps.xml index 1f19dfa..9d855a2 100644 --- a/res/maps.xml +++ b/res/maps.xml | |||
@@ -95,4 +95,4 @@ | |||
95 | 2,2,2,2,2,2,26,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,12,0,0,0,0,0,0,0,0,0, | 95 | 2,2,2,2,2,2,26,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,12,0,0,0,0,0,0,0,0,0, |
96 | 0,0,0,0,0,0,27,1,3,4,2,1,3,2,1,1,2,4,1,1,1,3,1,1,4,2,1,3,4,1,25,19,0,0,0,0,0,0,0,0, | 96 | 0,0,0,0,0,0,27,1,3,4,2,1,3,2,1,1,2,4,1,1,1,3,1,1,4,2,1,3,4,1,25,19,0,0,0,0,0,0,0,0, |
97 | 0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 97 | 0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
98 | </environment><entity type="movplat" x="98" y="145"><item id="dir">1</item><item id="len">70</item><item id="speed">35</item></entity><adjacent dir="up" type="warp" map="4"/></map></world> | 98 | </environment><entity type="movplat" x="98" y="145"><item id="dir">1</item><item id="len">90</item><item id="speed">30</item></entity><adjacent dir="up" type="warp" map="4"/></map></world> |