diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-12-03 14:38:47 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-12-03 14:38:47 +0000 |
commit | a7c7438ad24fcb4d5edc1fba6fa96a36e0f1b713 (patch) | |
tree | 4736b3d19eeed0f26d918eeb994e8be569777e15 | |
parent | e06ab2415b39fdffe3cc86939b45a464ad4dc541 (diff) |
Remove some test/debugging code
-rw-r--r-- | Level.cpp | 8 | ||||
-rw-r--r-- | Monster.cpp | 1 | ||||
-rw-r--r-- | Player.cpp | 1 | ||||
-rw-r--r-- | main.cpp | 2 |
4 files changed, 0 insertions, 12 deletions
@@ -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; } @@ -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 } @@ -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; } } |