game_state.h 595 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef GAMESTATE_H
  2. #define GAMESTATE_H
  3. #include <gui/icon_animation.h>
  4. #include <furi.h>
  5. #include "barry.h"
  6. #include "scientist.h"
  7. #include "coin.h"
  8. #include "particle.h"
  9. #include "game_sprites.h"
  10. typedef enum {
  11. GameStateLife,
  12. GameStateGameOver,
  13. } State;
  14. typedef struct {
  15. int points;
  16. int distance;
  17. BARRY barry;
  18. COIN coins[COINS_MAX];
  19. PARTICLE particles[PARTICLES_MAX];
  20. SCIENTIST scientists[SCIENTISTS_MAX];
  21. State state;
  22. GameSprites sprites;
  23. FuriMutex* mutex;
  24. } GameState;
  25. void game_state_tick(GameState* const game_state);
  26. #endif // GAMESTATE_H