aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 00:57:19 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 00:57:19 -0600
commit028cf5d33d99274deea9567159a4eb07c13ef85c (patch)
treeb2d9f0ae8fb640fdbe1a41114c7c8314f9223103 /src/gameScreen.c
parent416a5cbab21c480ae9e85b07fd9424452cbcb611 (diff)
This fucker is flying
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
new file mode 100644
index 0000000..c62584a
--- /dev/null
+++ b/src/gameScreen.c
@@ -0,0 +1,17 @@
+#include "gameScreen.h"
+#include "game.h"
+
+void updateGameScreen(Game * game) {
+ ClearBackground(BLACK);
+
+ // Camera.
+ updatePlayerCamera(&game->playerCamera, game);
+
+ BeginMode3D(game->playerCamera);
+
+ DrawGrid(100, 5.0);
+
+ game->ship.drawCb(game, &game->ship, 0);
+
+ EndMode3D();
+}