aboutsummaryrefslogtreecommitdiffstats
path: root/src/clicky.h
blob: 12b3b126377105c214d92f76aecc8ba014df663e (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
28
29
30
#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;

    // Used for color collision stuff.
    Color* colors;

    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