New Badguy "Will-O-Wisp": eerie light that tracks Tux and warps him to another spawnpoint
[supertux.git] / data / levels / test / default.nut
index 0699090..53a21c3 100644 (file)
@@ -7,6 +7,7 @@ function intro()
   RADIO.set_action("quiet");  
   PENNY.set_action("stand-left");
   NOLOK.set_visible(false);
+  local logo = FloatingImage("images/objects/logo/logo.sprite");
   Tux.deactivate();
   Tux.set_visible(false);
   DisplayEffect.sixteen_to_nine(0);
@@ -24,10 +25,11 @@ function intro()
   SUPERTUX.set_velocity(50,0);
   Camera.scroll_to(3100, 945, 18);
   wait(10);
-  Text.set_text("SuperTux\n(Replace this with the title logo)");
-  Text.fade_in(2);
+  logo.set_anchor_point(ANCHOR_TOP);
+  logo.set_pos(0, 50);
+  logo.set_visible(true);
   wait(5);
-  Text.fade_out(2);
+  logo.set_visible(false);
   wait(6);
   
   //begin conversation and Tux rap
@@ -46,12 +48,12 @@ function intro()
   shake_bush();
   wait(2);
   shake_bush();
-  wait(1);
+  wait(1.3);
   
   //enter Nolok
-  NOLOK.set_velocity(-180, 600);
+  NOLOK.set_velocity(-220, 600);
   NOLOK.set_visible(true);
-  DisplayEffect.fade_out(1.5);
+  DisplayEffect.fade_out(1.3);
   wait(3);
 
   //darkness
@@ -70,8 +72,8 @@ function intro()
   tux_upset();
   wait(4);
   SUPERTUX.set_action("stand-right");
-  SUPERTUX.set_velocity(300,700);
-  wait(1);
+  SUPERTUX.set_velocity(300,0);
+  wait(2);
   
   //end intro sequence
   DisplayEffect.fade_out(2);
@@ -102,3 +104,26 @@ function tux_upset()
   wait(0.3);
 }
 
+function intro_scene2()
+{
+  //initialize
+  Camera.scroll_to(0, 945, 0);
+  SUPERTUX.set_action("stand-right");
+  SUPERTUX.set_visible(false);
+  NOLOK.set_visible(false);
+  Tux.deactivate();
+  Tux.set_visible(false);
+  DisplayEffect.sixteen_to_nine(0);
+  Sound.play("music/nolok.ogg");
+  DisplayEffect.fade_in(5);
+  wait(5);
+  Camera.scroll_to(3100, 945, 8);
+  NOLOK.set_visible(true);  
+  NOLOK.set_velocity(500,0);
+  wait(8);
+  SUPERTUX.set_visible(true);
+  SUPERTUX.set_velocity(300,0);
+  wait(24);
+  Level.finish();
+}
+