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/animation.c | |
parent | 6f3fe42d5888e70fe195b6bbf32b7bdd4059415b (diff) |
Smoother Movement
Tis all
Diffstat (limited to 'Week1-Pacman/src/animation.c')
-rw-r--r-- | Week1-Pacman/src/animation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Week1-Pacman/src/animation.c b/Week1-Pacman/src/animation.c index 0747ba1..7e4bb57 100644 --- a/Week1-Pacman/src/animation.c +++ b/Week1-Pacman/src/animation.c @@ -64,3 +64,8 @@ void draw_animation(struct demo* demo, NULL, SDL_FLIP_NONE); } + +void reset_animation(struct animation* animation) { + animation->current_frame = 0; + animation->current_time = 0; +} |