back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/color_palette.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-17 17:00:48 +0300
committerscratko <m@scratko.xyz>2024-04-17 18:33:03 +0300
commitef3844bf2128fa82f20c5995d1fca66fadba2ce3 (patch)
tree905048a285a8cd8fd6a070ce3b6c075e9681e59a /color_palette.h
parent194f71c150eb9ee696acca17176092e8b0ce6e4f (diff)
downloadpacman-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 'color_palette.h')
-rw-r--r--color_palette.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/color_palette.h b/color_palette.h
new file mode 100644
index 0000000..81ccce8
--- /dev/null
+++ b/color_palette.h
@@ -0,0 +1,15 @@
+#ifndef COLOR_PALETTE_H_SENTRY
+#define COLOR_PALETTE_H_SENTRY
+
+#include "field.h"
+#include "ghosts.h"
+
+void set_pairs();
+void paint_field_element(int element);
+void paint_stats();
+void paint_ghost(enum ghost_color color, int blink);
+void paint_pac();
+void paint_hit();
+void reset_attr();
+
+#endif