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 /field.h | |
| 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 'field.h')
| -rw-r--r-- | field.h | 10 | 
1 files changed, 8 insertions, 2 deletions
| @@ -45,12 +45,17 @@ void display_ghosts_on_field(struct ghost_type *red_ghost,                               struct ghost_type *blue_ghost,                               struct ghost_type *orange_ghost);  void display_score(int value); +struct coordinates; +void display_hit(struct coordinates pac_position, +                 const struct ghost_type *red_ghost, +                 const struct ghost_type *pink_ghost, +                 const struct ghost_type *blue_ghost, +                 const struct ghost_type *orange_ghost);  struct queue; -struct coordinates;  void clear_or_revert_symbol(game_space field, struct coordinates position,                              enum select_character character, -                            struct queue *eaten_coins); +                            const struct queue *eaten_coins);  enum intersection_type get_intersection(const game_space field,                                          struct ghost_type *ghost); @@ -75,5 +80,6 @@ int is_equal_points(struct coordinates first_point, struct coordinates  void clear_field(game_space field);  void erase_life(int value); +void erase_hit(struct coordinates point);  #endif | 
