diff options
author | BoredGuy <osome3717@gmail.com> | 2024-12-14 12:08:02 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2024-12-14 12:08:02 +0300 |
commit | fc3032135f4da3662d6b727c70f22049d6e09231 (patch) | |
tree | 8e0caba74cc6749c76f211540fe908f6b9a3d476 /Week1-Pacman/src/demo.h | |
parent | 993f45cec7a08a5b980ef5a08ea7ce19b877b743 (diff) |
Update
- Finish animation system
- Fix bug where leftward/upward movement was slightly faster than
downward/forward movement
Diffstat (limited to 'Week1-Pacman/src/demo.h')
-rw-r--r-- | Week1-Pacman/src/demo.h | 11 |
1 files changed, 9 insertions, 2 deletions
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_ |