aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
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;