diff options
author | BoredGuy <osome3717@gmail.com> | 2024-12-30 18:46:31 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2024-12-30 18:46:31 +0300 |
commit | 6f7d1bb16ff266f4126a46c6acb132dd9f80cd86 (patch) | |
tree | 126fc32cfae7dc53f3f4b1769453ff1b1fb336b4 /Week1-Pacman/src/pacman.h | |
parent | 6f3fe42d5888e70fe195b6bbf32b7bdd4059415b (diff) |
Smoother Movement
Tis all
Diffstat (limited to 'Week1-Pacman/src/pacman.h')
-rw-r--r-- | Week1-Pacman/src/pacman.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Week1-Pacman/src/pacman.h b/Week1-Pacman/src/pacman.h index e1610af..3bb0681 100644 --- a/Week1-Pacman/src/pacman.h +++ b/Week1-Pacman/src/pacman.h @@ -4,6 +4,7 @@ #include <SDL2/SDL.h> #include "animation.h" #include "demo.h" +#include "map.h" enum facing { FACING_RIGHT, @@ -26,7 +27,7 @@ struct pacman { }; void handle_pacman_input(SDL_Event* e, struct pacman* pacman); -void update_pacman(struct pacman* pacman, float dt); +void update_pacman(struct pacman* pacman, float dt, struct map* map); void draw_pacman(struct demo* demo, const struct pacman* pacman); #endif // PACMAN_H_ |