Fix screen switching
This commit is contained in:
@@ -83,6 +83,10 @@ typedef struct Game {
|
||||
DrawData *drawData;
|
||||
} Game;
|
||||
|
||||
static void setScreen(Game *game, GameScreen newScreen) {
|
||||
game->nextScreen = newScreen;
|
||||
}
|
||||
|
||||
extern ecs_world_t *ECS;
|
||||
|
||||
extern ECS_COMPONENT_DECLARE(Game); // defined in main.c
|
||||
|
||||
Reference in New Issue
Block a user