Auto-run levels are automatically marked as solved.
[supertux.git] / data / levels / world1 / intro.stl
index 08fcb3b..3129877 100644 (file)
@@ -2,53 +2,45 @@
   (version 2)
   (name (_ "Picnic With Penny"))
   (author "SuperTux Team")
-  (on-menukey-script "sector.Effect.fade_out(1);
-wait(1);
-Level.finish(true);
-")
+  (license "GPL 2+ / CC-by-sa 3.0")
   (sector
     (name "main")
     (music "music/intro.ogg")
-    (init-script "
-      import(\"levels/world1/intro.nut\");
-      intro();
-    ")
-    (ambient-light 1 1 1)
-    (spawnpoint
-      (name "main")
-      (x 896)
-      (y 768)
-    )
+    (init-script "  Tux.add_bonus(\"grow\");
+  RADIO.set_action(\"quiet\");
+  PENNY.set_action(\"stand-left\");
+  NOLOK.set_visible(false);
+")
     (ambient-light 1 1 1)
     (camera
       (mode "normal")
     )
-    (scriptedobject
-      (name "SUPERTUX")
-      (visible #t)
-      (physic-enabled #t)
-      (solid #t)
-      (x 2291)
-      (y 1275)
-      (sprite "images/creatures/tux_big/tux.sprite")
+    (decal
+      (x 1600)
+      (y 1056)
+      (sprite "images/engine/menu/logo.png")
+    )
+    (gradient
+      (top_color 0 0.85 1)
+      (bottom_color 0 0.6 1)
     )
     (scriptedobject
       (name "PENNY")
       (visible #t)
       (physic-enabled #t)
       (solid #t)
+      (sprite "images/creatures/penny/penny.sprite")
       (x 3489)
       (y 1280)
-      (sprite "images/creatures/penny/penny.sprite")
     )
     (scriptedobject
       (name "RADIO")
       (visible #t)
       (physic-enabled #t)
       (solid #t)
+      (sprite "images/objects/radio/radio.sprite")
       (x 3404)
       (y 1302)
-      (sprite "images/objects/radio/radio.sprite")
     )
     (scriptedobject
       (name "BUSH")
@@ -56,29 +48,98 @@ Level.finish(true);
       (visible #t)
       (physic-enabled #f)
       (solid #f)
+      (sprite "images/tiles/doodads/iceshrub.sprite")
       (x 3607)
       (y 1220)
-      (sprite "images/tiles/doodads/iceshrub.sprite")
     )
     (scriptedobject
       (name "NOLOK")
       (visible #t)
       (physic-enabled #t)
       (solid #t)
+      (sprite "images/creatures/nolok/nolok.sprite")
       (x 3631)
       (y 1276)
-      (sprite "images/creatures/nolok/nolok.sprite")
+    )
+    (scripttrigger
+      (script "function shake_bush()
+{
+  //play_sound(\"sounds/rustle.wav\");
+  local bushx = BUSH.get_pos_x();
+  local bushy = BUSH.get_pos_y();
+  for(local i = 0; i < 20; ++i) {
+    BUSH.set_pos(bushx + ( rand() % 6 ) - 3, bushy);
+    wait(0.05);
+  }
+}
+
+if(!(\"script_ran\" in this)) {
+  script_ran <- true;
+  //initialize
+  Tux.deactivate();
+  Tux.walk(0);
+
+  //begin conversation and Tux rap
+  play_sound(\"speech/tux_hello.ogg\");
+  wait(3.5);
+  play_sound(\"speech/penny_runt_01.ogg\");
+  wait(1.5);
+  play_sound(\"speech/tux_murp_01.ogg\");
+  wait(1.5);
+  RADIO.set_action(\"loud\");
+  play_sound(\"speech/tux_rap.ogg\");
+  wait(8);
+  shake_bush();
+  wait(5);
+  shake_bush();
+  wait(3);
+  shake_bush();
+  wait(1.8);
+
+  //enter Nolok
+  NOLOK.set_velocity(-220, 600);
+  NOLOK.set_visible(true);
+  Effect.fade_out(1.3);
+  wait(4);
+
+  //darkness
+  NOLOK.set_visible(false);
+  NOLOK.set_solid(false);
+  PENNY.set_visible(false);
+  PENNY.set_solid(false);
+  RADIO.set_visible(false);
+  RADIO.set_solid(false);
+
+  //wake up, Tux...
+  Effect.fade_in(3);
+  Tux.activate();
+  Tux.kill(false);
+}")
+      (button #f)
+      (width 32)
+      (height 520)
+      (x 3392)
+      (y 832)
+    )
+    (scripttrigger
+      (script "Effect.fade_out(2);
+  wait(2);
+  Level.finish(true);")
+      (width 32)
+      (height 380)
+      (x 4320)
+      (y 960)
     )
     (particles-snow
     )
-    (gradient
-      (top_color 0 0.85 1)
-      (bottom_color 0 0.6 1)
+    (spawnpoint
+      (name "main")
+      (x 480)
+      (y 1280)
     )
     (tilemap
-      (z-pos -100)
       (solid #f)
-      (speed 1)
+      (z-pos -100)
       (width 200)
       (height 50)
       (tiles
@@ -135,9 +196,8 @@ Level.finish(true);
       )
     )
     (tilemap
-      (z-pos 0)
       (solid #t)
-      (speed 1)
+      (z-pos 0)
       (width 200)
       (height 50)
       (tiles
@@ -194,9 +254,8 @@ Level.finish(true);
       )
     )
     (tilemap
-      (z-pos 100)
       (solid #f)
-      (speed 1)
+      (z-pos 100)
       (width 200)
       (height 50)
       (tiles
@@ -242,7 +301,7 @@ Level.finish(true);
       0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
       0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 107 108 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 107 108 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 107 108 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201 201