aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:14:20 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:14:20 -0400
commit60f685b7b544b94ae1e6212b939cdae5ac12e725 (patch)
tree1fd3d11972cd2887a7927611a0da763821645767 /src/ui.cpp
parent4391f9289b7368765b39c9654d6b0bdf2db8f36b (diff)
added dropping from platforms
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 1e78dca..75bc5ee 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -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;