From 194f71c150eb9ee696acca17176092e8b0ce6e4f Mon Sep 17 00:00:00 2001 From: scratko Date: Tue, 16 Apr 2024 02:37:12 +0300 Subject: 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. --- pac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pac.h') diff --git a/pac.h b/pac.h index 29e83a1..ea0825b 100644 --- a/pac.h +++ b/pac.h @@ -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; -- cgit v1.2.3