summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 76e6349..36788aa 100644
--- a/src/player.c
+++ b/src/player.c
@@ -112,9 +112,9 @@ void handle_fall(struct entity* player) {
}
void handle_flip(struct entity* player) {
- if (player->velocity.x < 0) {
+ if (IsKeyDown(KEY_A)) {
player->flip = true;
- } else if (player->velocity.x > 0){
+ } else if (IsKeyDown(KEY_D)){
player->flip = false;
}
}