diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-28 08:14:20 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-28 08:14:20 -0400 |
commit | 60f685b7b544b94ae1e6212b939cdae5ac12e725 (patch) | |
tree | 1fd3d11972cd2887a7927611a0da763821645767 /src/ui.cpp | |
parent | 4391f9289b7368765b39c9654d6b0bdf2db8f36b (diff) |
added dropping from platforms
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -142,6 +142,10 @@ namespace ui { player->vel.x=.15; currentWorld=currentWorld->goWorldRight(player); } + if(SDL_KEY==SDLK_s && player->ground==2){ + player->ground=false; + player->loc.y-=HLINE*1.5; + } if(SDL_KEY==SDLK_SPACE){ // Jump if(player->ground){ player->vel.y=.25; |