diff options
-rw-r--r-- | main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -37,12 +37,16 @@ int main(int argc, char* args[]) { // Adjust player velocity switch (event.key.keysym.sym) { case SDLK_LEFT: + case SDLK_a: level.player.incXVel(-MOVE_AMOUNT); break; case SDLK_RIGHT: + case SDLK_d: level.player.incXVel(MOVE_AMOUNT); break; case SDLK_UP: + case SDLK_w: + case SDLK_SPACE: level.player.jump(); break; case SDLK_LCTRL: @@ -53,9 +57,11 @@ int main(int argc, char* args[]) { // Adjust player velocity switch (event.key.keysym.sym) { case SDLK_LEFT: + case SDLK_a: level.player.incXVel(MOVE_AMOUNT); break; case SDLK_RIGHT: + case SDLK_d: level.player.incXVel(-MOVE_AMOUNT); break; case SDLK_LCTRL: |