1 /* Default functions for the whole levelset */
2 print("default.nut loaded\n");
7 SUPERTUX.set_action("stand-right");
8 RADIO.set_action("quiet");
9 PENNY.set_action("stand-left");
10 NOLOK.set_visible(false);
11 logo <- FloatingImage("images/objects/logo/logo.sprite");
13 Tux.set_visible(false);
14 Effect.sixteen_to_nine(0);
16 //begin scrolling sequence
18 Camera.scroll_to(0, 945, 15);
19 Sound.play("music/intro.ogg");
21 Text.set_text("Somewhere at the shores\nof Antarctica...");
26 SUPERTUX.set_velocity(50,0);
27 Camera.scroll_to(3100, 945, 18);
29 logo.set_anchor_point(ANCHOR_TOP);
31 logo.set_visible(true);
33 logo.set_visible(false);
36 //begin conversation and Tux rap
37 SUPERTUX.set_velocity(0,0);
38 Sound.play("speech/tux_hello.ogg");
40 Sound.play("speech/penny_runt_01.ogg");
42 Sound.play("speech/tux_murp_01.ogg");
44 RADIO.set_action("loud");
45 Sound.play("speech/tux_rap.ogg");
55 NOLOK.set_velocity(-220, 600);
56 NOLOK.set_visible(true);
61 NOLOK.set_visible(false);
62 PENNY.set_visible(false);
63 RADIO.set_action("quiet");
64 SUPERTUX.set_pos(3550, SUPERTUX.get_pos_y());
69 Sound.play("speech/tux_upset.ogg");
75 SUPERTUX.set_action("stand-right");
76 SUPERTUX.set_velocity(300,0);
87 //Sound.play("sounds/rustle.wav");
88 local bushx = BUSH.get_pos_x();
89 local bushy = BUSH.get_pos_y();
90 for(local i = 0; i < 20; ++i) {
91 BUSH.set_pos(bushx + rand() % 6 - 3, bushy);
98 SUPERTUX.set_action("stand-right");
99 SUPERTUX.set_velocity(200,0);
101 SUPERTUX.set_velocity(0,0);
103 SUPERTUX.set_action("stand-left");
104 SUPERTUX.set_velocity(-200,0);
108 function intro_scene2()
111 Camera.scroll_to(0, 945, 0);
112 SUPERTUX.set_action("stand-right");
113 SUPERTUX.set_visible(false);
114 NOLOK.set_visible(false);
116 Tux.set_visible(false);
117 Effect.sixteen_to_nine(0);
118 Sound.play("music/nolok.ogg");
121 Camera.scroll_to(3100, 945, 8);
122 NOLOK.set_visible(true);
123 NOLOK.set_velocity(500,0);
125 SUPERTUX.set_visible(true);
126 SUPERTUX.set_velocity(300,0);