From dd83126b20122915ca673f0f385d089743f8bc4b Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Tue, 31 Dec 2024 10:22:43 +0300 Subject: More Muvement Improvements - You can now hold a direction to turn to in the next frame --- Week1-Pacman/src/pacman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Week1-Pacman/src/pacman.h') diff --git a/Week1-Pacman/src/pacman.h b/Week1-Pacman/src/pacman.h index c800910..028a73f 100644 --- a/Week1-Pacman/src/pacman.h +++ b/Week1-Pacman/src/pacman.h @@ -26,7 +26,7 @@ struct pacman { struct animation animations[4]; }; -void handle_pacman_input(SDL_Event* e, struct pacman* pacman, struct map* map); +void handle_pacman_input(const char* keyboard, struct pacman* pacman, struct map* map); void update_pacman(struct pacman* pacman, float dt, struct map* map); void draw_pacman(struct demo* demo, const struct pacman* pacman); -- cgit v1.2.3