summaryrefslogtreecommitdiff
path: root/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Player.cpp')
-rw-r--r--Player.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Player.cpp b/Player.cpp
index a7df818..9865648 100644
--- a/Player.cpp
+++ b/Player.cpp
@@ -7,7 +7,9 @@ Player::Player() {
}
void Player::jump() {
- std::cout << "Player::jump(): Jumping!.\n";
+ if (!yVel) {
+ incYVel(-JUMP_STRENGTH);
+ }
}
void Player::kill() {