#ifndef PACMAN_H_ #define PACMAN_H_ #include #include "animation.h" #include "demo.h" #include "map.h" enum facing { FACING_RIGHT, FACING_DOWN, FACING_LEFT, FACING_UP }; struct pacman { /* * Coolest bug I have ever seen in my life */ float xpos; float ypos; enum facing facing; /* One for each face */ struct animation animations[4]; }; void handle_pacman_input(SDL_Event* e, struct pacman* pacman); void update_pacman(struct pacman* pacman, float dt, struct map* map); void draw_pacman(struct demo* demo, const struct pacman* pacman); #endif // PACMAN_H_