game.h 694 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include "engine/engine.h"
  3. #include "engine/sensors/imu.h"
  4. #include <notification/notification_messages.h>
  5. typedef struct {
  6. Level* menu;
  7. Level* settings;
  8. Level* game;
  9. Level* message;
  10. } Levels;
  11. typedef struct {
  12. bool sound;
  13. bool show_fps;
  14. } Settings;
  15. typedef struct {
  16. Imu* imu;
  17. bool imu_present;
  18. Levels levels;
  19. Settings settings;
  20. NotificationApp* app;
  21. GameManager* game_manager;
  22. } GameContext;
  23. void game_switch_sound(GameContext* context);
  24. void game_switch_show_fps(GameContext* context);
  25. void game_sound_play(GameContext* context, const NotificationSequence* sequence);
  26. extern const NotificationSequence sequence_sound_menu;