"kill",
"gotoend",
"flip",
- "finish"
+ "finish",
+ "restart",
+ "quit"
};
}
tux.kill(tux.KILL);
return true;
}
+ if (command == "restart") {
+ restart_level(true);
+ return true;
+ }
if (command == "whereami") {
msg_info("You are at x " << tux.get_pos().x << ", y " << tux.get_pos().y);
return true;
<< Sector::current()->camera->get_translation().y);
return true;
}
+ if (command == "quit") {
+ msg_info("Please implement me! :-)");
+ return true;
+ }
return false;
}