barry.h 450 B

12345678910111213141516171819202122232425
  1. #ifndef BARRY_H
  2. #define BARRY_H
  3. #include <stdbool.h>
  4. #include <gui/gui.h>
  5. #include "point.h"
  6. #include "game_sprites.h"
  7. #define GRAVITY_BOOST -0.3
  8. #define GRAVITY_TICK 0.15
  9. #define BARRY_HEIGHT 15
  10. #define BARRY_WIDTH 11
  11. typedef struct {
  12. float gravity;
  13. POINT point;
  14. bool isBoosting;
  15. } BARRY;
  16. void barry_tick(BARRY* const barry);
  17. void draw_barry(const BARRY* barry, Canvas* const canvas, const GameSprites* sprites);
  18. #endif // BARRY_H