diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 08:19:07 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-29 08:19:07 -0400 |
commit | cb2ebd8ec104afb617485c8caa07c1b572d27aea (patch) | |
tree | 70ce38dbb9acc2ed05e31dc393a5af1e9b1cf9cf /src | |
parent | 0e5c78738efd5206ace1d000fd4160e223ba8597 (diff) |
fixed world again
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -238,11 +238,17 @@ namespace ui { } } if(SDL_KEY==SDLK_i){ - player->vel.y=.5; + player->vel.y=.2; + player->loc.y+=HLINE*7; player->ground=false; currentWorld=currentWorld->goWorldBack(player); // Go back a layer if possible } - if(SDL_KEY==SDLK_k)currentWorld=currentWorld->goWorldFront(player); // Go forward a layer if possible + if(SDL_KEY==SDLK_k){ + player->vel.y=.2; + player->loc.y+=HLINE*10; + player->ground=false; + currentWorld=currentWorld->goWorldFront(player); // Go forward a layer if possible + } if(SDL_KEY==SDLK_LSHIFT)player->speed = 3; // Sprint if(SDL_KEY==SDLK_LCTRL)player->speed = .5; } |