X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=data%2Fscripts%2Fconsole.nut;h=dc4e05daa9ce53f49987dfe96be6e4b188139335;hb=2c624a0daabc4db00bf0b3ab49ccd3907586b6a3;hp=5da37752fbeb8f46c89cdf216e076eb7433a4ce9;hpb=89ecbfcacb9abac599f8feba52792392b8199cf1;p=supertux.git diff --git a/data/scripts/console.nut b/data/scripts/console.nut index 5da37752f..dc4e05daa 100644 --- a/data/scripts/console.nut +++ b/data/scripts/console.nut @@ -14,6 +14,25 @@ function finish() Level.finish(true); } +function edit() +{ + Level.edit(true); +} + +function play() +{ + Level.edit(false); +} + +function worldmapfinish() +{ + save_state(); + foreach(levelname, level in state.worlds[state.world].levels) { + level.solved = true; + } + update_worldmap(); +} + function grow() { sector.Tux.add_bonus("grow");