Restructure/refactor of main.c
This commit is contained in:
19
game/game_state.h
Normal file
19
game/game_state.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef PIXELDEFENSE_GAME_STATE_H
|
||||
#define PIXELDEFENSE_GAME_STATE_H
|
||||
|
||||
#include <breeze.h>
|
||||
#include <flecs.h>
|
||||
|
||||
typedef struct Game {
|
||||
Camera2D camera;
|
||||
BzTileset terrainTileset;
|
||||
BzTileset buildingsTileset;
|
||||
BzTileset entitiesTileset;
|
||||
BzTileMap map;
|
||||
int selectedBuilding;
|
||||
ecs_entity_t *entityMap;
|
||||
} Game;
|
||||
|
||||
extern Game *GAME;
|
||||
|
||||
#endif //PIXELDEFENSE_GAME_STATE_H
|
||||
Reference in New Issue
Block a user