diff options
author | scratko <m@scratko.xyz> | 2024-04-16 02:37:12 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-04-16 02:37:12 +0300 |
commit | 194f71c150eb9ee696acca17176092e8b0ce6e4f (patch) | |
tree | feff177d5ffca319a71db4848f653b7ea7ae17c6 /pac.h | |
parent | e42ac35110b1819bf9762fbb4504ab920a17e207 (diff) | |
download | pacman-194f71c150eb9ee696acca17176092e8b0ce6e4f.tar.gz pacman-194f71c150eb9ee696acca17176092e8b0ce6e4f.tar.bz2 pacman-194f71c150eb9ee696acca17176092e8b0ce6e4f.zip |
Scoring system
Pacman's starting position doesn't contain a coin.
Fixed an error in field_has_energizer().
The field prints the number of pacman lives and the score.
All coin checks are moved to the field.c file.
Restart is replaced by initialization of starting parameters.
The final stage contains the game results screens.
Queue clearing is combined with field clearing.
Get_out_stage moved to struct mode_type.
Diffstat (limited to 'pac.h')
-rw-r--r-- | pac.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ enum { struct pacman { char lives; - unsigned char coins_eaten; + unsigned char score; struct coordinates position; enum movement_direction direction; int is_energizer_eaten; |