default.nut 590 B

123456789101112131415161718192021222324252627
  1. /* Default functions for the whole levelset */
  2. print("default.nut loaded\n");
  3. function intro_scene2()
  4. {
  5. //initialize
  6. Camera.scroll_to(0, 945, 0);
  7. SUPERTUX.set_action("stand-right");
  8. SUPERTUX.set_visible(false);
  9. NOLOK.set_visible(false);
  10. Tux.deactivate();
  11. Tux.set_visible(false);
  12. Effect.sixteen_to_nine(0);
  13. play_sound("music/nolok.ogg");
  14. Effect.fade_in(5);
  15. wait(5);
  16. Camera.scroll_to(3100, 945, 8);
  17. NOLOK.set_visible(true);
  18. NOLOK.set_velocity(500,0);
  19. wait(8);
  20. SUPERTUX.set_visible(true);
  21. SUPERTUX.set_velocity(300,0);
  22. wait(24);
  23. Level.finish(true);
  24. }