From 3e45e8c0bdb2218bde1c861d14df7216316bbc05 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 26 Nov 2010 13:36:32 +0000 Subject: Implement player jumping --- Player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Player.cpp') 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() { -- cgit v1.2.3