- some gfx, jumpy replacement
[supertux.git] / data / levels / test / script.stl
index 7c6846b..52ba3c4 100644 (file)
@@ -1,7 +1,7 @@
 (supertux-level
   (version 2)
   (name (_ "Scripting Test"))
-  (author "Development Team")
+  (author "SuperTux Team")
   (sector
     (name "main")
     (music "salcon.ogg")
@@ -11,15 +11,14 @@ logo.set_visible(true);
         
 Text.set_text(translate(\"The Crazy Nolok Dance\"));
 Text.fade_in(2);
-TUX.set_action(\"jump\");
+TUX.set_action(\"jump-left\");
 wait(4);
 Text.fade_out(1);
 wait(1);
-NOLOK.set_visible(true);
 tuxjumps <- 2;
 while(true) {
        wait(0.8);
-       Sound.play(\"sounds/jump.wav\");
+       play_sound(\"sounds/jump.wav\");
        if(tuxjumps >= 0) {
                TUX.set_velocity(50, 300);
        } else {
@@ -36,7 +35,7 @@ while(true) {
        } else if(PENNY.get_action() == \"jump\") {
                PENNY.set_action(\"dead\");
        } else {
-               Sound.play(\"sounds/grow.wav\");
+               play_sound(\"sounds/grow.wav\");
                PENNY.set_action(\"stand\");
                PENNY.set_velocity(0, 900);
        }
@@ -70,8 +69,8 @@ while(true) {
     (scriptedobject
       (name "TUX")
       (visible #t)
-      (physic-enabled #f)
-      (solid #f)
+      (physic-enabled #t)
+      (solid #t)
       (x 160)
       (y 448)
       (sprite "images/creatures/yeti/yeti.sprite")
@@ -79,21 +78,12 @@ while(true) {
     (scriptedobject
       (name "PENNY")
       (visible #t)
-      (physic-enabled #f)
-      (solid #f)
+      (physic-enabled #t)
+      (solid #t)
       (x 390)
       (y 448)
       (sprite "images/creatures/dummyguy/dummyguy.sprite")
     )
-    (scriptedobject
-      (name "NOLOK")
-      (visible #f)
-      (physic-enabled #f)
-      (solid #f)
-      (x 420)
-      (y 94)
-      (sprite "images/creatures/dummyguy/dummyguy.sprite")
-    )
     (ambient_sound
       (sample "phone")
       (distance_factor 0.01)
@@ -107,7 +97,7 @@ while(true) {
     (particles-snow
     )
     (tilemap
-      (layer "background")
+      (z-pos -100)
       (solid #f)
       (speed 1)
       (width 25)
@@ -115,7 +105,7 @@ while(true) {
       (tiles 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 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 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 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 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 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 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 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 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 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 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1343 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342)
     )
     (tilemap
-      (layer "interactive")
+      (z-pos 0)
       (solid #t)
       (speed 1)
       (width 25)
@@ -123,7 +113,7 @@ while(true) {
       (tiles 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 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 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 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 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 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 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 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 124 98 98 125 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 124 98 98 125 0 0 0 0 0 0 0 0 0 0 0 122 123 0 0 0 0 0 0 0 0 124 98 98 125 0 0 0 0 0 1348 0 0 0 0 0 124 125 0 0 0 0 0 0 0 0 124 98 98 125 0 0 122 123 0 79 0 0 0 0 0 124 125 0 0 0 0 0 0 0 0 124 98 98 125 0 0 124 125 0 79 0 0 0 0 0 1345 1344 0 0 0 0 0 0 0 0 1345 1346 1346 1344 0 0 1345 1344 0 1349 0 0 0 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 1342 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 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 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)
     )
     (tilemap
-      (layer "foreground")
+      (z-pos 100)
       (solid #f)
       (speed 1)
       (width 25)