barry.h 429 B

1234567891011121314151617181920212223
  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_TICK 0.2
  8. #define GRAVITY_BOOST -0.4
  9. #define GRAVITY_FALL 0.3
  10. typedef struct {
  11. float gravity;
  12. POINT point;
  13. bool isBoosting;
  14. } BARRY;
  15. void barry_tick(BARRY* const barry);
  16. void draw_barry(const BARRY* barry, Canvas* const canvas, const GameSprites* sprites);
  17. #endif // BARRY_H