From: Matthias Braun Date: Sun, 8 May 2005 20:38:40 +0000 (+0000) Subject: restored some lost changes X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d471366f1ac5e8fad47e6ce161edc4977f180704;p=supertux.git restored some lost changes SVN-Revision: 2447 --- diff --git a/basest/levels/test/script.stl b/basest/levels/test/script.stl index 75721cd5a..9622f08bc 100644 --- a/basest/levels/test/script.stl +++ b/basest/levels/test/script.stl @@ -1,4 +1,144 @@ -;; Generated by Flexlay Editor + + + + + + + + +[supertux] View of /trunk/supertux/data/levels/test/script.stl + + + + + + + + + +
  +Home | +About us | +Partners | +Contact + +
+ + + + + + + + + + +
 SVN Repository +FOKUS +
+ + + + + +
+ + +
+
+ + + + +
+ + + +[supertux] +/ + + + +trunk +/ + + + +supertux +/ + + + +data +/ + + + +levels +/ + + + +test +/ + + + +script.stl + + +
+
+

View of /trunk/supertux/data/levels/test/script.stl

+ + Parent Directory + +| Revision Log + + + +
+
+Revision: 2428 - +(download) + + + +
Sat May 7 00:58:24 2005 UTC (43 hours, 39 minutes ago) by matzebraun + + + + + +
File size: 5940 byte(s) + + + +
- Change ScriptInterpreter to a gameobject, so we can now have several script
+interpreters running
+- Added a dead-script option to the yeti and added a small script when the
+yeti is dead
+- worked a bit more on the yeti
+- Implement Level::spawn and Level::finish scripting API
+
+
+ +
+
;; Generated by Flexlay Editor
 (supertux-level
   (version 2)
   (name   (_ "Scripting Test"))
@@ -110,7 +250,7 @@
        )
        (scriptedobject
          (name "PENNY")
-         (x 256)
+         (x 390)
          (y 448)
          (sprite "dummyguy")
        )
@@ -121,24 +261,29 @@
          (sprite "dummyguy")
          (visible #f)
          (physic-enabled #f)
+         (solid #f)
        )
        (init-script "
-print(\"Making tux jump...\");
+function wait(time) {
+    set_wakeup_time(time);
+    suspend();
+}
+Text.set_text(translate(\"The Crazy Nolok Dance\"));
+Text.fade_in(2);
 TUX.set_animation(\"jump\");
-TUX.set_velocity(150, 200);
-wait(3);
-suspend();
-PENNY.set_velocity(-200, 200);
-tuxjumps <- 2;
+wait(4);
+Text.fade_out(1);
+wait(1);
+NOLOK.set_visible(true);
+tuxjumps <- 2;
 while(true) {
   wait(0.8);
-  suspend();
   Sound.play_sound(\"jump\");
-  if(tuxjumps >= 0) {
+  if(tuxjumps >= 0) {
     TUX.set_velocity(50, 300);
   } else {
     TUX.set_velocity(-50, 300);
-    if(tuxjumps < -2)
+    if(tuxjumps < -2)
       tuxjumps = 3;
   }
   tuxjumps--;
@@ -159,3 +304,20 @@ while(true) {
    )
 )
 
+
+ +
+ + + + + +
+
BerliOS Admin

+
+Powered by ViewCVS 1.0-dev +
ViewCVS and CVS Help +
+ + + diff --git a/basest/levels/test/yeti.stl b/basest/levels/test/yeti.stl index bb0103ba2..60c8279ef 100644 --- a/basest/levels/test/yeti.stl +++ b/basest/levels/test/yeti.stl @@ -1,4 +1,144 @@ -;; Generated by Flexlay Editor + + + + + + + + +[supertux] View of /trunk/supertux/data/levels/test/yeti.stl + + + + + + + + + +
  +Home | +About us | +Partners | +Contact + +
+ + + + + + + + + + +
 SVN Repository +FOKUS +
+ + + + + +
+ + +
+
+ + + + +
+ + + +[supertux] +/ + + + +trunk +/ + + + +supertux +/ + + + +data +/ + + + +levels +/ + + + +test +/ + + + +yeti.stl + + +
+
+

View of /trunk/supertux/data/levels/test/yeti.stl

+ + Parent Directory + +| Revision Log + + + +
+
+Revision: 2428 - +(download) + + + +
Sat May 7 00:58:24 2005 UTC (43 hours, 39 minutes ago) by matzebraun + + + + + +
File size: 5553 byte(s) + + + +
- Change ScriptInterpreter to a gameobject, so we can now have several script
+interpreters running
+- Added a dead-script option to the yeti and added a small script when the
+yeti is dead
+- worked a bit more on the yeti
+- Implement Level::spawn and Level::finish scripting API
+
+
+ +
+
;; Generated by Flexlay Editor
 (supertux-level
   (version 2)
   (name   (_ "Yeti Test"))
@@ -100,7 +240,22 @@
          (speed 0.500000)
        )
        (spawnpoint (name "main") (x 480) (y 448))
-       (yeti (x 2) (y 177))
+       (yeti
+         (x 2)
+         (y 177)
+         (dead-script "
+Sound.play_sound(\"invincible\");
+Text.set_text(\"You made it!\");
+Text.set_font(\"big\");
+Text.fade_in(1.5);
+set_wakeup_time(4);
+suspend();
+Text.fade_out(1);
+set_wakeup_time(1.5);
+suspend();
+Level.finish();
+")
+        )
        (particles-snow
        )
        (yeti_stalactite (x 97) (y 46))
@@ -126,3 +281,20 @@
  )
 
 ;; EOF ;;
+
+ +
+ + + + + +
+
BerliOS Admin

+
+Powered by ViewCVS 1.0-dev +
ViewCVS and CVS Help +
+ + +