blob: 0f6da3969b1e8c1bce9c2035e3151ab6694e7b2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#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 {
Texture background_texture;
struct entity entities[MAX_ENTITY_COUNT];
};
void update_game(float dt);
void draw_game();
void init_game();
void load_level_from_tiled_tmj(const char* filename);
#endif
|