game_state.h 472 B

12345678910111213141516171819202122232425
  1. #ifndef GAME_STATE_H
  2. #define GAME_STATE_H
  3. #include <furi.h>
  4. #include <stdlib.h>
  5. #include "game_state.h"
  6. #include "paper.h"
  7. #include "map.h"
  8. typedef struct GameState {
  9. Paper* paper;
  10. FuriTimer* timer;
  11. uint32_t last_tick;
  12. FuriMutex* mutex;
  13. uint16_t* map;
  14. int crash_flag;
  15. } GameState;
  16. void game_state_init(GameState* const game_state);
  17. void game_state_reinit(GameState* const game_state);
  18. void check_collision(GameState* const game_state);
  19. #endif