coin.h 424 B

123456789101112131415161718192021
  1. #ifndef COIN_H
  2. #define COIN_H
  3. #include <gui/gui.h>
  4. #include "point.h"
  5. #include "barry.h"
  6. #define COINS_MAX 25
  7. typedef struct {
  8. float gravity;
  9. POINT point;
  10. } COIN;
  11. void coin_tick(COIN* const coins, BARRY* const barry, int* const poins);
  12. void spawn_random_coin(COIN* const coins);
  13. bool coin_colides(COIN* const coin, BARRY* const barry);
  14. void draw_coins(const COIN* coins, Canvas* const canvas);
  15. #endif // COIN_H