aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.h
blob: ab162ad5a545169295fe54ab9cd9260023dfd9b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "utils.h"
#include "settings.h"
#include "assets.h"
#include "player.h"
#include "world.h"
#include "entity.h"

#ifndef GAME_H
#define GAME_H

typedef enum {
  MAIN_MENU_SCENE,
  GAME_SCENE
} SceneId;

struct Game {
  SceneId sceneId;
  Settings settings;
  Assets assets;
  Player player;
  World world;

  // For testing only.
  Entity entities[2];
};

void initGame(Game* game);
void updateGame(Game* game);
void closeGame(Game* game);

#endif