switched testing player controller to wasd (from arrows)

pull/2/head
Sara 2023-05-07 17:55:22 +02:00
parent 8f7792c673
commit 9f9cc446fe
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ object_t* create_player() {
player_instance->evt_update = &player_update;
player_instance->sprite = make_sprite("player.png", 0, 0);
add_key_listener(SDL_SCANCODE_LEFT, SDL_SCANCODE_RIGHT, &player_axis_horizontal);
add_key_listener(SDL_SCANCODE_DOWN, SDL_SCANCODE_UP, &player_axis_vertical);
add_key_listener(SDL_SCANCODE_A, SDL_SCANCODE_D, &player_axis_horizontal);
add_key_listener(SDL_SCANCODE_S, SDL_SCANCODE_W, &player_axis_vertical);
return player_instance;
}