- make sure all log messages get displayed, even when the console is not
[supertux.git] / data / scripts / default.nut
1 /**
2  * This script gets loaded into the squirrel root vm in supertux. So functions
3  * and variables you define here can be used in all threads
4  */
5 function end_level()
6 {
7   Sound.play_music("music/leveldone.ogg");
8   Tux.deactivate();
9   wait(6);
10   Effect.fade_out(2);
11   wait(2);
12   Level.finish(true);
13 }
14
15 function levelflip()
16 {
17   Effect.fade_out(1);
18   wait(1);
19   Level.flip_vertically();
20   Effect.fade_in(1);
21 }
22
23 function println(val)
24 {
25         print(val);
26         print("\n");
27 }
28