diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-29 08:09:46 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-29 08:09:46 -0400 |
commit | 764e0983c21247e325807933227b077bdc1ef6be (patch) | |
tree | 0f71fd87255f66cfd2d4263efcb3741518f09a68 /src/ui.cpp | |
parent | 33ad7fe2203d93f3721b1e22faf94527b78f0f71 (diff) | |
parent | b195f57a6ad36f795c9a03e525357e5df246f26f (diff) |
readded readme, fixed world handling w/ interpolation
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -165,6 +165,7 @@ namespace ui { if(SDL_KEY==SDLK_i)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_F3)debug^=true; + if(SDL_KEY==SDLK_LSHIFT)player->speed = 3; // TEMPORARY UNTIL MOUSE if(SDL_KEY==SDLK_t){ @@ -181,6 +182,8 @@ namespace ui { case SDL_KEYUP: if(SDL_KEY==SDLK_a)player->vel.x=0; // Stop the player if movement keys are released if(SDL_KEY==SDLK_d)player->vel.x=0; + if(SDL_KEY==SDLK_LSHIFT)player->speed = 1; + break; default: break; |