diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 18:37:02 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-21 18:37:02 +0000 |
commit | 2416dc256e53c431c5226827d90cf504f190f9ec (patch) | |
tree | c1f4de943b4b7e792664c3296af50d7f2d2da192 /src/clicky.c | |
parent | 2f6a0233b16d25df9b79a61b93fd8a72626bad3c (diff) | |
download | PenguinYippies-2416dc256e53c431c5226827d90cf504f190f9ec.tar.gz PenguinYippies-2416dc256e53c431c5226827d90cf504f190f9ec.tar.bz2 PenguinYippies-2416dc256e53c431c5226827d90cf504f190f9ec.zip |
Added a clicky
Diffstat (limited to 'src/clicky.c')
-rw-r--r-- | src/clicky.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/clicky.c b/src/clicky.c new file mode 100644 index 0000000..a1ab910 --- /dev/null +++ b/src/clicky.c @@ -0,0 +1,29 @@ +#include "clicky.h" +#include "game.h" +#include "assets.h" + +void updatePenguinLol(Game* game, Clicky* clicky) +{ + +} + +Clicky createPenguinLolClicky(Game* game) +{ + Clicky clicky; + + clicky.animation = createAnimation(&game->assets.animations[PENGUIN_LOL_ANIMATION], ANIMATION_DEFAULT_DELAY); + clicky.texture = &clicky.animation.texture; + clicky.rect = (Rectangle){0.0, 0.0, 128.0, 128.0}; + + clicky.data = NULL; + clicky.updateCB = updatePenguinLol; + + runAnimation(&clicky.animation); + + return clicky; +} + +void freePenginLolClicky(Clicky clicky) +{ + closeAnimation(&clicky.animation); +} |