if (player.valid()) {
if (kue.sym == SDLK_a) {
if (auto vel = player.component<Velocity>(); vel)
- vel->x += GROUND_VELOCITY;
+ vel->x -= GROUND_VELOCITY;
} else if (kue.sym == SDLK_d) {
if (auto vel = player.component<Velocity>(); vel)
- vel->x -= GROUND_VELOCITY;
+ vel->x += GROUND_VELOCITY;
}
}
}
if (player.valid()) {
if (kue.sym == SDLK_a) {
if (auto vel = player.component<Velocity>(); vel)
- vel->x -= GROUND_VELOCITY;
+ vel->x += GROUND_VELOCITY;
} else if (kue.sym == SDLK_d) {
if (auto vel = player.component<Velocity>(); vel)
- vel->x += GROUND_VELOCITY;
+ vel->x -= GROUND_VELOCITY;
}
}
}