From fc3032135f4da3662d6b727c70f22049d6e09231 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Sat, 14 Dec 2024 12:08:02 +0300 Subject: Update - Finish animation system - Fix bug where leftward/upward movement was slightly faster than downward/forward movement --- Week1-Pacman/src/demo.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Week1-Pacman/src/demo.h') diff --git a/Week1-Pacman/src/demo.h b/Week1-Pacman/src/demo.h index b276027..427a577 100644 --- a/Week1-Pacman/src/demo.h +++ b/Week1-Pacman/src/demo.h @@ -18,7 +18,14 @@ struct demo { void update_demo(struct demo* demo); void demo_rendercopy(struct demo* demo, SDL_Texture* texture, - SDL_Rect* s_rect, - SDL_Rect* d_rect); + const SDL_Rect* s_rect, + const SDL_Rect* d_rect); +void demo_rendercopy_ex(struct demo* demo, + SDL_Texture* texture, + const SDL_Rect* s_rect, + const SDL_Rect* d_rect, + const double angle, + const SDL_Point* center, + const SDL_RendererFlip flip); #endif // DEMO_H_ -- cgit v1.2.3