castle worldmap tile updates
[supertux.git] / data / levels / world2 / level2.stl
index e1487ee..3797a4b 100644 (file)
@@ -5,7 +5,7 @@
   (author "SuperTux Team")
   (sector
     (name  "main")
-    (music  "forest.mod")
+    (music  "forest.ogg")
     (gravity 10.000000)
     (tilemap
       (layer  "background")
          (image "forest1.jpg")
          (speed 1.000000)
        )
-        (secretarea (x 673.0)
+       (init-script "level2_init();")
+       (secretarea (x 673.0)
                     (y 1090.0)
                     (width 24.0)
                     (height 19.0)
                     (message "Drink me"))
                     (powerup (x 3168) (y 416)
         (sprite (_ "eat-me"))
-        (script "
-DisplayEffect.fade_out(1);
-wait(1);
-Level.flip_vertically();
-DisplayEffect.fade_in(1);
-")       
+        (script "levelflip();")       
       )
       (bonusblock (x 672) (y 1056)
         (contents "custom")
         (powerup
           (sprite "red-potion")
-          (script "
-DisplayEffect.fade_out(1);
-wait(1);
-Level.flip_vertically();
-DisplayEffect.fade_in(1);
-")
+          (script "levelflip();")
         )
       )
       (powerup (x 8608) (y 1024)
         (sprite "red-potion")
-        (script "
-DisplayEffect.fade_out(1);
-wait(1);
-Level.flip_vertically();
-DisplayEffect.fade_in(1);
-")
+        (script "levelflip();")
       )
       (powerup (x 9952) (y 416)
         (sprite "red-potion")
-        (script "
-DisplayEffect.fade_out(1);
-wait(1);
-Level.flip_vertically();
-DisplayEffect.fade_in(1);
-")
+        (script "levelflip();")
       )
       (powerup (x 8000) (y 352)
-        (sprite "gold-key")
-        (script "wait(7);
-                 Level.finish();")
+        (sprite "key-gold")
+        (script "get_gold_key();")
       )
       (infoblock (x 2560) (y 320)
         (message (_ "-Oh no!