aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-06 11:13:16 +0000
committernathan <nathansmith@disroot.org>2025-07-06 11:13:16 +0000
commit601961a245a48112029341437912fe13b54dac0b (patch)
treea3cf0a664b02bbecb3c5e146c1b2eabcec191623 /src/game.c
parent942924f120d104cf0d6f080497c286d98bd14e11 (diff)
downloadFindThings-601961a245a48112029341437912fe13b54dac0b.tar.gz
FindThings-601961a245a48112029341437912fe13b54dac0b.tar.bz2
FindThings-601961a245a48112029341437912fe13b54dac0b.zip
rreeee
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 7a5be42..4de6a32 100644
--- a/src/game.c
+++ b/src/game.c
@@ -23,6 +23,14 @@ void initGame(Game* game)
// World.
game->world = createWorld(&game->assets);
+ game->entities[0] = createEntity(OLD_MINT, (Vector3){100.0, 0.0, 100.0});
+ game->entities[1] = createEntity(STICKY_NICKEL,
+ (Vector3){100.0, 0.0, 105.0});
+ game->entities[0].position.y = getWorldHeightAtLocation(game->world,
+ 100, 100) + 1.0;
+ game->entities[1].position.y = getWorldHeightAtLocation(game->world,
+ 100, 105) + 1.0;
+
DisableCursor();
}
@@ -41,6 +49,11 @@ void updateGameScene(Game* game)
updateWorld(&game->world, game);
+ for (int index = 0; index < 2; ++index)
+ {
+ updateEntity(&game->entities[index], game);
+ }
+
EndMode3D();
}