restored some lost changes
[supertux.git] / basest / levels / test / script.stl
1
2
3
4
5 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
6 "http://www.w3.org/TR/REC-html40/loose.dtd">
7 <!-- ViewCVS - http://viewcvs.sourceforge.net/
8 by Greg Stein - mailto:gstein@lyra.org -->
9 <html>
10 <head>
11 <title>[supertux] View of /trunk/supertux/data/levels/test/script.stl</title>
12 <meta name="generator" content="ViewCVS 1.0-dev">
13 <link rel="stylesheet" href="/viewcvs/*docroot*/styles.css" type="text/css">
14 </head>
15 <body>
16 <!-- top strip -->
17 <table width="100%" border=0 cellspacing=0 cellpadding=2>
18 <tr bgcolor="#7b7b7b">
19 <td><span class=maintitlebar>&nbsp
20 <b><a href="http://www.berlios.de/" class="maintitlebar">Home</a></b> |
21 <b><a href="http://www.berlios.de/about/" class="maintitlebar">About us</a></b> |
22 <b><a href="http://www.berlios.de/partners/" class="maintitlebar">Partners</a></b> |
23 <b><a href="http://www.berlios.de/contact/" class="maintitlebar">Contact</a></b>
24 </span>
25 </td>
26 </tr>
27 </table>
28 <!-- end top strip -->
29 <!-- top title table -->
30 <table width="100%" border=0 cellspacing=0 cellpadding=0 bgcolor="" valign="middle">
31 <tr valign="top" bgcolor="#ffcc33">
32 <td bgcolor="#ffffff"><a href="http://www.berlios.de/"><img src="/images/berliOS_logo.png" hspace=5 vspace=5 border=0 width="238" height="61"></a></td>
33 <td WIDTH="10" BGCOLOR="#ffcc33"><img SRC="/images/blank.gif" BORDER=0 height=1 width=10></td>
34 <td width="99%" valign="middle"><b><font size=+1>&nbsp;SVN Repository</font></b></td>
35 <td valign=middle>
36 <a href="http://www.fokus.fraunhofer.de/"><img src="/images/logo_fokus.png" align="right" alt="FOKUS" hspace="10" border=0 width="60" height="60"></a>
37 </td>
38 </tr>
39 <tr><td bgcolor="#7b7b7b" colspan=4><img src="/images/blank.gif" height=2 vspace=0></td></tr>
40 </table>
41 <!-- end top title table -->
42 <table width="100%" border=0 cellspacing=0 cellpadding=4>
43 <tr>
44 <td align=middle>
45 <script type="text/javascript"><!--
46 google_ad_client = "pub-3290644696617321";
47 google_ad_width = 468;
48 google_ad_height = 60;
49 google_ad_format = "468x60_as";
50 google_color_border = "CCCCCC";
51 google_color_bg = "FFFFFF";
52 google_color_link = "000000";
53 google_color_url = "666666";
54 google_color_text = "333333";
55 //--></script>
56 <script type="text/javascript"
57 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
58 </script>
59 </td>
60 </tr>
61 </table>
62 <div class="vc_navheader">
63 <table width="100%" border="0" cellpadding="2" cellspacing="0">
64 <tr>
65 <td align="left"><b>
66
67 <a href="/viewcvs/supertux/?rev=2428">
68
69 [supertux]</a>
70 /
71
72 <a href="/viewcvs/supertux/trunk/?rev=2428">
73
74 trunk</a>
75 /
76
77 <a href="/viewcvs/supertux/trunk/supertux/?rev=2428">
78
79 supertux</a>
80 /
81
82 <a href="/viewcvs/supertux/trunk/supertux/data/?rev=2428">
83
84 data</a>
85 /
86
87 <a href="/viewcvs/supertux/trunk/supertux/data/levels/?rev=2428">
88
89 levels</a>
90 /
91
92 <a href="/viewcvs/supertux/trunk/supertux/data/levels/test/?rev=2428">
93
94 test</a>
95 /
96
97 <a href="/viewcvs/supertux/trunk/supertux/data/levels/test/script.stl?rev=2428&amp;view=log">
98
99 script.stl</a>
100
101
102 </b></td>
103 </tr>
104 </table>
105 </div>
106 <h1><img align=right src="/viewcvs/*docroot*/images/logo.png" width=128 height=48>View of /trunk/supertux/data/levels/test/script.stl</h1>
107
108 <a href="/viewcvs/supertux/trunk/supertux/data/levels/test/"><img src="/viewcvs/*docroot*/images/back_small.png" width=16 height=16 border=0> Parent Directory</a>
109
110 | <a href="/viewcvs/supertux/trunk/supertux/data/levels/test/script.stl?view=log"><img src="/viewcvs/*docroot*/images/text.png" border=0> Revision Log</a>
111
112
113
114 <hr>
115 <div class="vc_summary">
116 Revision: <b>2428</b> -
117 (<a href="/viewcvs/*checkout*/supertux/trunk/supertux/data/levels/test/script.stl?rev=2428"><b>download</b></a>)
118
119
120
121 <br><i>Sat May  7 00:58:24 2005 UTC</i> (43 hours, 39 minutes ago) by <i>matzebraun</i>
122
123
124
125
126
127 <br>File size: 5940 byte(s)
128
129
130
131 <pre class="vc_log">- Change ScriptInterpreter to a gameobject, so we can now have several script
132 interpreters running
133 - Added a dead-script option to the yeti and added a small script when the
134 yeti is dead
135 - worked a bit more on the yeti
136 - Implement Level::spawn and Level::finish scripting API
137
138 </pre>
139
140 </div>
141 <pre>;; Generated by Flexlay Editor
142 (supertux-level
143   (version 2)
144   (name   (_ "Scripting Test"))
145   (author "totally pointless script maker")
146   (sector
147     (name  "main")
148     (music  "salcon.mod")
149     (gravity 10.000000)
150     (tilemap
151       (layer  "background")
152       (solid #f)
153       (speed  1.000000)
154       (width  25)
155       (height 20)
156       (tiles
157         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 
158         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 
159         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 
160         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 
161         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 
162         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 
163         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 
164         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 
165         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 
166         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 
167         0 0 0 0 0 0 0 0 0 0 0 0 124 210 210 125 0 0 0 0 0 0 0 0 0 
168         0 0 0 0 0 0 0 0 0 0 0 0 124 210 210 125 0 0 0 0 0 0 0 0 0 
169         0 0 0 0 0 0 0 0 0 0 0 0 124 210 210 125 0 0 0 0 0 0 0 0 0 
170         0 0 124 125 0 0 0 0 0 0 0 0 124 210 210 125 0 0 0 0 0 0 0 0 0 
171         0 0 124 125 0 0 0 0 0 0 0 0 124 210 210 125 0 0 124 125 0 0 0 0 0 
172         0 0 124 125 0 0 25 0 0 0 24 0 124 210 210 125 0 0 124 125 0 0 24 0 0 
173         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 
174         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 
175         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 
176         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 
177         ))
178     (tilemap
179       (layer  "interactive")
180       (solid #t)
181       (speed  1.000000)
182       (width  25)
183       (height 20)
184       (tiles
185         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 
186         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 
187         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 
188         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 
189         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 
190         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 
191         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 
192         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 
193         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 
194         0 0 0 0 0 0 0 0 0 0 0 0 122 209 209 123 0 0 0 0 0 0 0 0 0 
195         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 
196         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 
197         0 0 122 123 0 0 0 0 0 0 0 0 0 0 402 403 404 405 0 0 0 0 0 0 0 
198         0 0 0 0 0 0 0 0 0 0 0 0 0 0 406 407 408 409 122 123 0 0 0 0 0 
199         0 403 404 0 0 0 0 0 0 0 0 0 0 0 410 451 412 413 0 0 0 0 0 0 0 
200         8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 
201         14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
202         11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
203         11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
204         11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
205         ))
206     (tilemap
207       (layer  "foreground")
208       (solid #f)
209       (speed  1.000000)
210       (width  25)
211       (height 20)
212       (tiles
213         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 
214         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 
215         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 
216         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 
217         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 
218         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 
219         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 
220         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 
221         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 
222         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 
223         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 
224         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 
225         0 0 0 0 0 0 0 0 0 0 0 0 0 0 402 403 404 405 0 0 0 0 0 0 0 
226         0 0 0 0 0 0 0 0 0 0 0 0 0 0 406 407 408 409 0 0 0 0 0 0 0 
227         0 403 404 0 0 0 0 0 0 0 0 0 0 0 410 411 412 413 0 0 0 0 0 0 0 
228         0 407 408 0 0 0 0 0 0 0 0 0 0 0 414 423 416 425 0 0 0 0 0 0 0 
229         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 
230         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 
231         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 
232         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 
233         ))
234     (camera
235       (mode "normal")
236     )
237
238        (background
239          (image "semi_arctic.jpg")
240          (speed 0.500000)
241        )
242        (spawnpoint (name "main") (x 320) (y 384))
243        (particles-snow
244        )
245        (scriptedobject
246          (name "TUX")
247          (x 160)
248          (y 448)
249          (sprite "dummyguy")
250        )
251        (scriptedobject
252          (name "PENNY")
253          (x 390)
254          (y 448)
255          (sprite "dummyguy")
256        )
257        (scriptedobject
258          (name "NOLOK")
259          (x 420)
260          (y 94)
261          (sprite "dummyguy")
262          (visible #f)
263          (physic-enabled #f)
264          (solid #f)
265        )
266        (init-script "
267 function wait(time) {
268     set_wakeup_time(time);
269     suspend();
270 }
271 Text.set_text(translate(\"The Crazy Nolok Dance\"));
272 Text.fade_in(2);
273 TUX.set_animation(\"jump\");
274 wait(4);
275 Text.fade_out(1);
276 wait(1);
277 NOLOK.set_visible(true);
278 tuxjumps &lt;- 2;
279 while(true) {
280   wait(0.8);
281   Sound.play_sound(\"jump\");
282   if(tuxjumps &gt;= 0) {
283     TUX.set_velocity(50, 300);
284   } else {
285     TUX.set_velocity(-50, 300);
286     if(tuxjumps &lt; -2)
287       tuxjumps = 3;
288   }
289   tuxjumps--;
290   wait(0.5);
291   if(PENNY.get_animation() == \"stand\") {
292     PENNY.set_animation(\"throw\");
293   } else if(PENNY.get_animation() == \"throw\") {
294     PENNY.set_animation(\"jump\");
295   } else if(PENNY.get_animation() == \"jump\") {
296     PENNY.set_animation(\"dead\");
297   } else {
298     Sound.play_sound(\"grow\");
299     PENNY.set_animation(\"stand\");
300     PENNY.set_velocity(0, 900);
301   }
302 }
303 ")
304    )
305 )
306
307 </pre>
308
309 <hr noshade>
310 <table width="100%" border="0" cellpadding="0" cellspacing="0">
311 <tr>
312 <td align="left">
313 <address><a href="mailto:berlios-admin@berlios.de">BerliOS Admin</a></address><br />
314 </td>
315 <td align="right">
316 Powered by <a href="http://viewcvs.sourceforge.net/">ViewCVS 1.0-dev</a>
317 <br><a target="_blank" href="/viewcvs/*docroot*/help_rootview.html">ViewCVS and CVS Help</a>
318 </td>
319 </tr>
320 </table>
321 </body>
322 </html>
323