diff options
Diffstat (limited to 'src/UIClass.cpp')
-rw-r--r-- | src/UIClass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/UIClass.cpp b/src/UIClass.cpp index 319db5c..318ba00 100644 --- a/src/UIClass.cpp +++ b/src/UIClass.cpp @@ -17,6 +17,8 @@ void UIClass::handleEvents(){ if(e.key.keysym.sym == SDLK_d) player.right = true; if(e.key.keysym.sym == SDLK_a) player.left = true; if(e.key.keysym.sym == SDLK_SPACE) player.loc.y += 10; + if(e.key.keysym.sym == SDLK_i)if(currentWorld->behind) currentWorld=currentWorld->behind; + if(e.key.keysym.sym == SDLK_k)if(currentWorld->infront)currentWorld=currentWorld->infront; break; case SDL_KEYUP: if(e.key.keysym.sym == SDLK_d) player.right = false; @@ -25,4 +27,4 @@ void UIClass::handleEvents(){ break; } } -}
\ No newline at end of file +} |