aboutsummaryrefslogtreecommitdiffstats
path: root/src/clicky.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clicky.h')
-rw-r--r--src/clicky.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/clicky.h b/src/clicky.h
new file mode 100644
index 0000000..283b5c0
--- /dev/null
+++ b/src/clicky.h
@@ -0,0 +1,25 @@
+#include "gameCommon.h"
+#include "animation.h"
+
+#ifndef CLICKY_H
+#define CLICKY_H
+
+typedef struct Clicky Clicky;
+typedef void (*ClickyUpdateCB)(Game* game, Clicky* clicky);
+
+// A fixable clicky clicky. There shall be many clicky clickies.
+typedef struct Clicky {
+ Animation animation;
+ Texture* texture;
+ Rectangle rect;
+
+ void* data;
+ ClickyUpdateCB updateCB;
+} Clicky;
+
+// A silly silly penguin lol.
+Clicky createPenguinLolClicky(Game* game);
+void freePenginLolClicky(Clicky clicky);
+
+#endif
+