diff options
author | scratko <m@scratko.xyz> | 2024-04-07 22:40:47 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-04-07 22:40:47 +0300 |
commit | 155a3c5f91c7a3bd89febfeb9927478961f5ee28 (patch) | |
tree | 1953cd610d4a06c51aaedb728edd6131a4fa426a /pac.h | |
parent | 2c2448cc94b8f17ac699814a75110411d57f3bea (diff) | |
download | pacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.tar.gz pacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.tar.bz2 pacman-155a3c5f91c7a3bd89febfeb9927478961f5ee28.zip |
Tracking coins eaten
The initialization of ncurses parameters and ghosts was put into functions.
The order of movements has been changed: now pacman moves first.
Accounting for eaten coins.
Correct coin erasure.
Diffstat (limited to 'pac.h')
-rw-r--r-- | pac.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11,7 +11,7 @@ enum { struct pacman { char lives; - unsigned char points_eaten; + unsigned char coins_eaten; struct coordinates position; enum movement_direction direction; }; @@ -23,7 +23,8 @@ void change_pac_direction(game_space field, struct pacman *pac, int key, void check_remaining_direction(game_space field, struct pacman *pac, enum movement_direction *stored_direction); - -void make_pac_move(game_space field, struct pacman *pac); +struct queue; +void make_pac_move(game_space field, struct pacman *pac, + struct queue *eaten_coins); #endif |