From a7c7438ad24fcb4d5edc1fba6fa96a36e0f1b713 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 3 Dec 2010 14:38:47 +0000 Subject: Remove some test/debugging code --- Level.cpp | 8 -------- Monster.cpp | 1 - Player.cpp | 1 - main.cpp | 2 -- 4 files changed, 12 deletions(-) diff --git a/Level.cpp b/Level.cpp index b67ed2c..e39ab30 100644 --- a/Level.cpp +++ b/Level.cpp @@ -13,14 +13,6 @@ Level::Level() { } void Level::changeLevel(int levelNo) { - std::cout << "Level::changeLevel(): Loading level " << levelNo << ".\n"; - - // Creating some objects for fun/demonstration purposes - Monster monster1; - Pickup pickup1; - Hazard hazard1; - Platform platform1; - // Load background image if (!(background = loadImage("space.png"))) std::cout << "Level::changeLevel: Error loading background image.\n"; diff --git a/Monster.cpp b/Monster.cpp index d268262..48af20e 100644 --- a/Monster.cpp +++ b/Monster.cpp @@ -6,7 +6,6 @@ Monster::Monster() { } void Monster::kill() { - std::cout << "Monster::kill(): Killing monster.\n"; health = 0; isVisible = false; } diff --git a/Player.cpp b/Player.cpp index d5288ce..e38492d 100644 --- a/Player.cpp +++ b/Player.cpp @@ -13,7 +13,6 @@ void Player::jump() { } void Player::kill() { - std::cout << "Player::kill(): Killing player, resetting to start position.\n"; health = 0; // Do resetting stuff } diff --git a/main.cpp b/main.cpp index 357edc4..ed0cb00 100644 --- a/main.cpp +++ b/main.cpp @@ -47,7 +47,6 @@ int main(int argc, char* args[]) { break; case SDLK_LCTRL: level.player.setSprint(true); - std::cout << "Running...\n"; break; } } else if (event.type == SDL_KEYUP) { @@ -61,7 +60,6 @@ int main(int argc, char* args[]) { break; case SDLK_LCTRL: level.player.setSprint(false); - std::cout << "Stop running.\n"; break; } } -- cgit v1.2.3