aboutsummaryrefslogtreecommitdiffstats
path: root/src/clicky.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/clicky.c')
-rw-r--r--src/clicky.c29
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);
+}