blob: 764df00a09ec760e5a72e0e46bc9b57c1f53f1f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#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;
void updateClicky(Game* game, Clicky* clicky);
// A silly silly penguin lol.
Clicky createPenguinLolClicky(Game* game);
void freePenginLolClicky(Clicky clicky);
#endif
|