aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.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/gameScreen.c
parent77a06748f9f394486cad833e2ca351e8dbcc7361 (diff)
Bullet system added
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index 3282a8f..286a026 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -1,6 +1,7 @@
#include "gameScreen.h"
#include "game.h"
#include "world.h"
+#include "bullets.h"
void updateGameScreen(Game * game) {
@@ -14,11 +15,15 @@ void updateGameScreen(Game * game) {
BeginMode3D(game->playerCamera);
- DrawGrid(500, 25.0);
+ DrawGrid(50, 25.0);
+
+ //DrawSphereWires(Vector3Zero(), GAME_BOUNDS, 32, 32, WHITE);
// Draw world.
drawWorld(&game->world, game);
+ updateBullets(game, &game->bullets);
+
EndMode3D();
}