aboutsummaryrefslogtreecommitdiffstats
path: root/src/clicky.h
blob: 283b5c0be9b8066ef90d0d709bc2f0795bc22c5f (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
#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