Changing the bell reset point, trying to make a little cleaner.
[supertux.git] / data / script / default.nut
index 5034bf3..95b4f13 100644 (file)
@@ -1,15 +1,18 @@
 
-function get_gold_key()
-{
-  add_key(KEY_GOLD);
-  end_level();
-}
-
 function end_level()
 {
-  Sound.play_music("leveldone");
+  Sound.play_music("music/leveldone.ogg");
+  Tux.deactivate();
   wait(6);
   DisplayEffect.fade_out(2);
   wait(2);
   Level.finish();
 }
+
+function levelflip()
+{
+  DisplayEffect.fade_out(1);
+  wait(1);
+  Level.flip_vertically();
+  DisplayEffect.fade_in(1);
+}