diff options
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; +} |