summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-26 13:36:32 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-26 13:36:32 +0000
commit3e45e8c0bdb2218bde1c861d14df7216316bbc05 (patch)
treea6e709b19933555af5fdbb4f45bda04f27b1b493 /main.cpp
parent2ae1f27204f0f3040ff3b258affd7025bce8cbe8 (diff)
Implement player jumping
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 7eeeabe..81e5896 100644
--- a/main.cpp
+++ b/main.cpp
@@ -42,6 +42,9 @@ int main(int argc, char* args[]) {
case SDLK_RIGHT:
level.player.incXVel(10);
break;
+ case SDLK_UP:
+ level.player.jump();
+ break;
}
} else if (event.type == SDL_KEYUP) {
// Adjust player velocity