unleashed-firmware/applications/external/jetpack_joyride/includes/coin.h
2023-07-06 18:44:45 +03:00

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