#ifndef PACMAN_H_ #define PACMAN_H_ #include #include "animation.h" enum facing { FACING_UP, FACING_DOWN, FACING_LEFT, FACING_RIGHT }; struct pacman { int xpos; int ypos; enum facing facing; float frame_time; /* 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); void draw_pacman(SDL_Renderer* ren, const struct pacman* pacman); #endif // PACMAN_H_