switched testing player controller to wasd (from arrows)
parent
8f7792c673
commit
9f9cc446fe
|
@ -26,8 +26,8 @@ object_t* create_player() {
|
||||||
player_instance->evt_update = &player_update;
|
player_instance->evt_update = &player_update;
|
||||||
player_instance->sprite = make_sprite("player.png", 0, 0);
|
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_A, SDL_SCANCODE_D, &player_axis_horizontal);
|
||||||
add_key_listener(SDL_SCANCODE_DOWN, SDL_SCANCODE_UP, &player_axis_vertical);
|
add_key_listener(SDL_SCANCODE_S, SDL_SCANCODE_W, &player_axis_vertical);
|
||||||
|
|
||||||
return player_instance;
|
return player_instance;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue