diff options
author | BoredGuy <osome3717@gmail.com> | 2025-01-15 18:12:03 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-01-15 18:12:03 +0300 |
commit | 6a6f7be378bee10679e9e1ea61a70b00b4731589 (patch) | |
tree | 8017237147d72e455d6479734579df39eefd2853 /Week1-Pacman/src/enemy.h | |
parent | 5f7e0d8cf88d0adb9739e2cc7e26ba26243975f8 (diff) |
I am super proud of this one TBH
Diffstat (limited to 'Week1-Pacman/src/enemy.h')
-rw-r--r-- | Week1-Pacman/src/enemy.h | 25 |
1 files changed, 25 insertions, 0 deletions
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_ |