summaryrefslogtreecommitdiff
path: root/src/game.h
blob: f028569307b4d765a747e5ef81476a077b31e3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GAME_H_
#define GAME_H_
/*
 * Defines the data needed for the game scene
 * the data for the game is stored as a global variable
 * of type struct game defined in game.c
 */
#include "entity.h"
#include "constants.h"

struct game {
  struct entity entities[MAX_ENTITY_COUNT];
};

void update_game(float dt);
void draw_game();
void init_game();

void load_level_from_tiled_csv(const char* filename);

#endif