Invisible unisolid tile by tjcarter (GPL2+/CC-by-sa)
[supertux.git] / data / scripts / console.nut
index 9170e45..cdb190e 100644 (file)
@@ -14,10 +14,43 @@ function finish()
        Level.finish(true);
 }
 
-function println(val)
+function worldmapfinish()
 {
-       print(val);
-       print("\n");
+       save_state();
+       foreach(levelname, level in state.worlds[state.world].levels) {
+               level.solved = true;
+       }
+       update_worldmap();
+}
+
+function grow()
+{
+       sector.Tux.add_bonus("grow");
+}
+
+function fire()
+{
+       sector.Tux.add_bonus("fireflower");
+}
+
+function ice()
+{
+       sector.Tux.add_bonus("iceflower");
+}
+
+function shrink()
+{
+       sector.Tux.add_bonus("none");
+}
+
+function kill()
+{
+       sector.Tux.kill(true);
+}
+
+function lifeup()
+{
+       sector.Tux.add_coins(100);
 }
 
 /**
@@ -40,4 +73,3 @@ function functions(...)
        }
 }
 
-