game.h 429 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "engine/engine.h"
  3. #include <draw/world.h>
  4. // from https://github.com/jamisonderek/flipper-zero-tutorials/blob/main/vgm/apps/air_labyrinth/walls.h
  5. typedef struct
  6. {
  7. bool horizontal;
  8. int x;
  9. int y;
  10. int length;
  11. } Wall;
  12. #define WALL(h, y, x, l) \
  13. (Wall) \
  14. { \
  15. h, x * 2, y * 2, l \
  16. }
  17. typedef struct
  18. {
  19. uint32_t score;
  20. } GameContext;