diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-06 21:35:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 21:35:17 +0200 |
commit | b2c58b8d52717f8b5bf04d87b9799c7467e4eeb6 (patch) | |
tree | 344243247b21a93311a9cc2173fbddb2d126c040 /src/engine/player_controller.c | |
parent | 8be7919774250cca23151bf1505cbb48d1dd45ee (diff) | |
parent | e88c48ae60dd48542e44b0cc244b191c91782681 (diff) |
Merge pull request #60 from UnavailableDev/dev
random shop items + animation (slimes)
Diffstat (limited to 'src/engine/player_controller.c')
-rw-r--r-- | src/engine/player_controller.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/player_controller.c b/src/engine/player_controller.c index 0148792..7e2e678 100644 --- a/src/engine/player_controller.c +++ b/src/engine/player_controller.c @@ -37,6 +37,10 @@ void hh_player_actions(hh_entity* player){ *player = hh_background_collision ( *player, player_new); + + if (direction_x != 0) { + player->render.fam.horizontal_flip = (direction_x > 0 ?0:1); + } } |