diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 00:57:19 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 00:57:19 -0600 |
commit | 028cf5d33d99274deea9567159a4eb07c13ef85c (patch) | |
tree | b2d9f0ae8fb640fdbe1a41114c7c8314f9223103 /src/gameScreen.c | |
parent | 416a5cbab21c480ae9e85b07fd9424452cbcb611 (diff) |
This fucker is flying
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r-- | src/gameScreen.c | 17 |
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(); +} |