From 6a6f7be378bee10679e9e1ea61a70b00b4731589 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Wed, 15 Jan 2025 18:12:03 +0300 Subject: Scuffed Resource System I am super proud of this one TBH --- Week1-Pacman/src/enemy.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Week1-Pacman/src/enemy.h (limited to 'Week1-Pacman/src/enemy.h') diff --git a/Week1-Pacman/src/enemy.h b/Week1-Pacman/src/enemy.h new file mode 100644 index 0000000..a82a58e --- /dev/null +++ b/Week1-Pacman/src/enemy.h @@ -0,0 +1,25 @@ +#ifndef ENEMY_H_ +#define ENEMY_H_ + +#include "facing.h" + +enum color {BLUE, RED, PINK, ORANGE}; + +struct enemy_init { + int initial_xpos; + int initial_ypos; + + enum facing initial_facing; + enum color initial_color; +}; + +struct enemy { + int xpos; + int ypos; + + enum facing facing; +}; + +void init_enemy(struct enemy* enemy); + +#endif // ENEMY_H_ -- cgit v1.2.3