summaryrefslogtreecommitdiff
path: root/src/game.h
blob: 96b264f287eeb35fa7a09e99b80fad9e6f7c3294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "entity.h"

enum { MAX_ENTITIES = 128 };

typedef struct Game {
	unsigned int uuid;
	bool queue_next_scene;
	int queue_restart_scene;
	Entity entities[MAX_ENTITIES];
} Game;

void game_init(Game *this);
void game_deinit(Game *this);
void game_update(Game *this);
void game_draw(Game *this);
void game_restart_scene(Game *this);
Entity *game_create_entity(Game *this);