Level.finish(true);
}
-function println(val)
+function edit()
{
- print(val);
- print("\n");
+ 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");
+}
+
+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);
}
/**
}
}
-