diff options
author | scratko <m@scratko.xyz> | 2024-04-17 17:00:48 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-04-17 18:33:03 +0300 |
commit | ef3844bf2128fa82f20c5995d1fca66fadba2ce3 (patch) | |
tree | 905048a285a8cd8fd6a070ce3b6c075e9681e59a /pac.c | |
parent | 194f71c150eb9ee696acca17176092e8b0ce6e4f (diff) | |
download | pacman-ef3844bf2128fa82f20c5995d1fca66fadba2ce3.tar.gz pacman-ef3844bf2128fa82f20c5995d1fca66fadba2ce3.tar.bz2 pacman-ef3844bf2128fa82f20c5995d1fca66fadba2ce3.zip |
Added colors
Changed the number of pacman's lives.
Fixed clear_or_revert_symbol().
Target hit display.
Changed ghost initialization.
Clearing ghost positions is moved to the function.
Added flag in struct ghost_type (reached_pacman).
Changed catching stage.
Now eating an energizer resets the counter.
Diffstat (limited to 'pac.c')
-rw-r--r-- | pac.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -140,9 +140,12 @@ void catch_pac(struct pacman *pac) { --pac->lives; erase_life(pac->lives); - if(pac->lives >= 1) { + pac->direction = none; +#if 0 + if(pac->lives >= 0) { pac->position.y = pac_y; pac->position.x = pac_x; pac->direction = none; } +#endif } |