diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-12 20:55:37 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-12 20:55:37 -0400 |
commit | f3028d986781fb9a5199b6a0394b5a79871af156 (patch) | |
tree | 4adb1a0e97d5095c4087ebf9df25e592dc406421 /src/UIClass.cpp | |
parent | 16b3df909a66c9a70309e878f67a962230b799ed (diff) |
jump
Diffstat (limited to 'src/UIClass.cpp')
-rw-r--r-- | src/UIClass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/UIClass.cpp b/src/UIClass.cpp index e416bc1..3f3a91a 100644 --- a/src/UIClass.cpp +++ b/src/UIClass.cpp @@ -16,7 +16,10 @@ void UIClass::handleEvents(){ case SDL_KEYDOWN: if(e.key.keysym.sym == SDLK_d) player.right = true; if(e.key.keysym.sym == SDLK_a) player.left = true; - if(e.key.keysym.sym == SDLK_SPACE) player.loc.y += .5; + if(e.key.keysym.sym == SDLK_SPACE){ + player.loc.y += HLINE*1.2; + player.vel.y += .004; + } if(e.key.keysym.sym == SDLK_i) if(currentWorld->behind){ player.loc.x-=(currentWorld->getWidth()-currentWorld->behind->getWidth())/2; // Match player's location to new area |