mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-25 12:13:08 +00:00
26 lines
No EOL
529 B
C
26 lines
No EOL
529 B
C
#ifndef COIN_H
|
|
#define COIN_H
|
|
|
|
#include <gui/gui.h>
|
|
|
|
#include "point.h"
|
|
#include "barry.h"
|
|
|
|
#define COINS_MAX 15
|
|
|
|
typedef struct {
|
|
float gravity;
|
|
POINT point;
|
|
} COIN;
|
|
|
|
typedef struct {
|
|
int count;
|
|
POINT coins[COINS_MAX];
|
|
} COIN_PATTERN;
|
|
|
|
void coin_tick(COIN* const coins, BARRY* const barry, int* const poins);
|
|
void spawn_random_coin(COIN* const coins);
|
|
bool coin_colides(COIN* const coin, BARRY* const barry);
|
|
void draw_coins(const COIN* coins, Canvas* const canvas, const GameSprites* sprites);
|
|
|
|
#endif // COIN_H
|