From 799807e976f1948d0c13c2020ba8dc320824e09d Mon Sep 17 00:00:00 2001 From: Marek Moeckel Date: Wed, 15 Sep 2004 21:38:49 +0000 Subject: [PATCH] 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 --- src/gameloop.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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: -- 2.11.0