blob: a1ab910d9ae26f0bab2466192b60ce99a4381f9d (
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
|
#include "clicky.h"
#include "game.h"
#include "assets.h"
void updatePenguinLol(Game* game, Clicky* clicky)
{
}
Clicky createPenguinLolClicky(Game* game)
{
Clicky clicky;
clicky.animation = createAnimation(&game->assets.animations[PENGUIN_LOL_ANIMATION], ANIMATION_DEFAULT_DELAY);
clicky.texture = &clicky.animation.texture;
clicky.rect = (Rectangle){0.0, 0.0, 128.0, 128.0};
clicky.data = NULL;
clicky.updateCB = updatePenguinLol;
runAnimation(&clicky.animation);
return clicky;
}
void freePenginLolClicky(Clicky clicky)
{
closeAnimation(&clicky.animation);
}
|