diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 23:10:23 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 23:10:23 -0600 |
commit | e5268813dcbdc0d90a081b2223ebc21749038635 (patch) | |
tree | 7c917996749e4123fb1fe49ddd1ed3b8f7e92334 /src/gameScreen.c | |
parent | a90e1987de75cfecc2693952625af8cce507ae95 (diff) |
Better world
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r-- | src/gameScreen.c | 8 |
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(); } |