aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 23:10:23 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 23:10:23 -0600
commite5268813dcbdc0d90a081b2223ebc21749038635 (patch)
tree7c917996749e4123fb1fe49ddd1ed3b8f7e92334 /src/gameScreen.c
parenta90e1987de75cfecc2693952625af8cce507ae95 (diff)
Better world
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index 893da0c..1eb6b55 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -1,7 +1,12 @@
#include "gameScreen.h"
#include "game.h"
+#include "world.h"
void updateGameScreen(Game * game) {
+
+ // Update world.
+ updateWorld(&game->world, game);
+
ClearBackground(BLACK);
// Camera.
@@ -11,7 +16,8 @@ void updateGameScreen(Game * game) {
DrawGrid(500, 25.0);
- game->ship.drawCb(game, &game->ship, 0);
+ // Draw world.
+ drawWorld(&game->world, game);
EndMode3D();
}