projects
/
supertux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
load default.nut for all scripts, have own roottable for console and load console...
[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
6
function end_level()
7
{
8
Sound.play_music("music/leveldone.ogg");
9
Tux.deactivate();
10
wait(6);
11
Effect.fade_out(2);
12
wait(2);
13
Level.finish(true);
14
}
15
16
function levelflip()
17
{
18
Effect.fade_out(1);
19
wait(1);
20
Level.flip_vertically();
21
Effect.fade_in(1);
22
}
23