From: Marek Moeckel Date: Wed, 15 Sep 2004 21:38:49 +0000 (+0000) Subject: added two new cheat codes: X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=799807e976f1948d0c13c2020ba8dc320824e09d;p=supertux.git added two new cheat codes: "shrink" lets Tux react like being hit by an enemy "kill" kills Tux (useful if stuck in an unfinished level) SVN-Revision: 1920 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 4431f16f1..697d9f54e 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -433,7 +433,16 @@ GameSession::process_events() tux.invincible_timer.start(time_left.get_left()); last_keys.clear(); } - + if(compare_last(last_keys, "shrink")) + { // remove powerups + tux.kill(tux.SHRINK); + last_keys.clear(); + } + if(compare_last(last_keys, "kill")) + { // kill Tux + tux.kill(tux.KILL); + last_keys.clear(); + } break; case SDL_JOYAXISMOTION: