aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-18 05:54:30 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-18 05:54:30 -0600
commitf3f5fedbf591c10fa675a32103bab9480b42abe8 (patch)
tree54b46a23279cc45091393762c0d01b9c3637b729 /src/game.c
parent77a06748f9f394486cad833e2ca351e8dbcc7361 (diff)
Bullet system added
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 8096779..5bf35c4 100644
--- a/src/game.c
+++ b/src/game.c
@@ -19,6 +19,9 @@ void initGame(Game * game) {
// Camera.
initPlayerCamera(&game->playerCamera);
+
+ // Bullets.
+ initBullets(&game->bullets);
// World.
initWorld(&game->world);
@@ -39,6 +42,7 @@ void initGame(Game * game) {
void closeGame(Game * game) {
unloadAssets(&game->assets);
+ freeBullets(&game->bullets);
freeWorld(&game->world);
// Close window last.