From 2416dc256e53c431c5226827d90cf504f190f9ec Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Wed, 21 Feb 2024 11:37:02 -0700 Subject: Added a clicky --- src/clicky.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/clicky.h (limited to 'src/clicky.h') 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 + -- cgit v1.2.3