aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-18 19:03:52 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-18 19:03:52 -0600
commit9d42d9dcc3b492951785b35e08f0851842d7d148 (patch)
tree3d8bd6002ca34941bcac6235f60d90e35974ac22 /src/game.c
parent2c3290f9edebbde37737cc446a0e9f93e9430c06 (diff)
Started working on some gui stuff
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 372199e..d4deff4 100644
--- a/src/game.c
+++ b/src/game.c
@@ -19,6 +19,9 @@ void initGame(Game * game) {
// Camera.
initPlayerCamera(&game->playerCamera);
+
+ // Game screen.
+ initGameScreen(&game->gameScreen);
// World.
initWorld(&game->world);
@@ -49,6 +52,7 @@ void initGame(Game * game) {
void closeGame(Game * game) {
unloadAssets(&game->assets);
freeWorld(&game->world);
+ freeGameScreen(&game->gameScreen);
// Close window last.
CloseWindow();