Background can now render three images: Top, Center and Bottom
[supertux.git] / data / levels / test / script.stl
index 9e2267b..581a841 100644 (file)
@@ -96,7 +96,7 @@
     )
 
        (background
-         (image "semi_arctic.jpg")
+         (image "images/background/semi_arctic.jpg")
          (speed 0.500000)
        )
        (spawnpoint (name "main") (x 320) (y 416))
          (solid #f)
        )
        (init-script "
+
+        local logo = FloatingImage(\"images/objects/logo/logo.sprite\");
+
+        logo.set_visible(true);
+        
 Text.set_text(translate(\"The Crazy Nolok Dance\"));
 Text.fade_in(2);
-TUX.set_animation(\"jump\");
+TUX.set_action(\"jump\");
 wait(4);
 Text.fade_out(1);
 wait(1);
@@ -158,15 +163,15 @@ while(true) {
   }
   tuxjumps--;
   wait(0.5);
-  if(PENNY.get_animation() == \"stand\") {
-    PENNY.set_animation(\"throw\");
-  } else if(PENNY.get_animation() == \"throw\") {
-    PENNY.set_animation(\"jump\");
-  } else if(PENNY.get_animation() == \"jump\") {
-    PENNY.set_animation(\"dead\");
+  if(PENNY.get_action() == \"stand\") {
+    PENNY.set_action(\"throw\");
+  } else if(PENNY.get_action() == \"throw\") {
+    PENNY.set_action(\"jump\");
+  } else if(PENNY.get_action() == \"jump\") {
+    PENNY.set_action(\"dead\");
   } else {
     Sound.play(\"sounds/grow.wav\");
-    PENNY.set_animation(\"stand\");
+    PENNY.set_action(\"stand\");
     PENNY.set_velocity(0, 900);
   }
 }