diff options
Diffstat (limited to 'src/enemies/fish.h')
-rw-r--r-- | src/enemies/fish.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/enemies/fish.h b/src/enemies/fish.h new file mode 100644 index 0000000..9648bcd --- /dev/null +++ b/src/enemies/fish.h @@ -0,0 +1,24 @@ +#ifndef FISH_H +#define FISH_H + +#include "../enemy.h" +#include "../collision.h" + +typedef struct { + int id; + + double x, y; + int xstart; + double imageIndex; + double spd; + int dir, turning; + + Mask mask; +} Fish; + +void createFish(int x, int y, int dir); + +void fishStep(Fish* f); +void fishDraw(Fish* f); + +#endif
\ No newline at end of file |