X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=data%2Flevels%2Fworld1%2Fintro.nut;h=60f7e3171ea1144c4853e5a8cdc124b8aed9a971;hb=05168beefeda31176ad7ed5ef4879819e9b6af43;hp=e418a7f5af464eaa264d531d8773b0ad31f3b98e;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/data/levels/world1/intro.nut b/data/levels/world1/intro.nut index e418a7f5a..60f7e3171 100644 --- a/data/levels/world1/intro.nut +++ b/data/levels/world1/intro.nut @@ -1,7 +1,7 @@ function intro() { //initialize - SUPERTUX.set_action("stand-right"); + SUPERTUX.set_action("big-walk-right"); RADIO.set_action("quiet"); PENNY.set_action("stand-left"); NOLOK.set_visible(false); @@ -13,25 +13,29 @@ function intro() //begin scrolling sequence Effect.fade_in(2); Camera.scroll_to(0, 945, 15); - play_sound("music/intro.ogg"); wait(3); - Text.set_text("Somewhere at the shores\nof Antarctica..."); + Text.set_text(translate ("Somewhere at the shores\nof Antarctica...")); Text.fade_in(2); wait(3); Text.fade_out(2); wait(10); SUPERTUX.set_velocity(50,0); Camera.scroll_to(3100, 945, 18); - wait(10); + wait(6); logo.set_anchor_point(ANCHOR_TOP); - logo.set_pos(0, 50); + logo.set_pos(0, -120); logo.set_visible(true); - wait(5); - logo.set_visible(false); + logo.fade_in(2); + logo_in(); wait(6); + logo.fade_out(2); + wait(2); + logo.set_visible(false); + wait(5.3); //begin conversation and Tux rap SUPERTUX.set_velocity(0,0); + SUPERTUX.set_action("big-stand-right"); play_sound("speech/tux_hello.ogg"); wait(3); play_sound("speech/penny_runt_01.ogg"); @@ -69,7 +73,7 @@ function intro() wait(1); tux_upset(); wait(4); - SUPERTUX.set_action("stand-right"); + SUPERTUX.set_action("big-walk-right"); SUPERTUX.set_velocity(300,0); wait(2); @@ -85,20 +89,30 @@ function shake_bush() 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); + BUSH.set_pos(bushx + ( rand() % 6 ) - 3, bushy); wait(0.05); } } function tux_upset() { - SUPERTUX.set_action("stand-right"); + SUPERTUX.set_action("big-walk-right"); SUPERTUX.set_velocity(200,0); wait(0.3); + SUPERTUX.set_action("big-stand-right"); SUPERTUX.set_velocity(0,0); wait(0.4); - SUPERTUX.set_action("stand-left"); + SUPERTUX.set_action("big-walk-left"); SUPERTUX.set_velocity(-200,0); wait(0.3); + SUPERTUX.set_action("big-stand-left"); } +function logo_in() +{ + local i; + for(local i = -120; i <= 90; i+=2) { + logo.set_pos(0, i); + wait(0.01); + } +}