aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-09-29 08:08:08 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-09-29 08:08:08 -0400
commitb195f57a6ad36f795c9a03e525357e5df246f26f (patch)
treec1ebee302d2402a63b357d9abf5c5404d3d38779 /src/ui.cpp
parent34e2794d647447f6ddb29419abbe2f44593ba1fa (diff)
Fixed extra entity, added mouse square, added quests class
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index ababe3e..ff48421 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -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;