aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-10-11 11:03:05 +0000
committernathan <nathansmith@disroot.org>2025-10-11 11:03:05 +0000
commitf11daf2fdc3f3e090efbbc6beec8d3af831e8280 (patch)
tree6020a0dc886e97be91c3aecd0f670712849db50a /src/world.c
parent19e8c4da3820e3d3e4af10d338f1c03ad377de81 (diff)
downloadFindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.tar.gz
FindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.tar.bz2
FindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.zip
More john and ron are correct size now
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/world.c b/src/world.c
index b6fb9dc..42e3488 100644
--- a/src/world.c
+++ b/src/world.c
@@ -716,8 +716,14 @@ Texture generateGroundTexture()
return texture;
}
-Seed generateWorldCharacters(World* world, Seed seed, int index)
+Seed generateWorldCharacters(World* world, Seed seed, WorldUID start)
{
+ WorldUID index = start;
+
+ Entity ron = createEntity(RON, Vector3Scale(world->size, 0.5));
+ placeEntityOnGround(&ron, world);
+ world->entities[index] = ron;
+
return seed;
}
@@ -779,9 +785,9 @@ World createWorld(Seed seed, const Assets* assets)
seed = generateWorldUtilityPoles(&world, assets, seed, start, end);
// Characters.
- /* start = end; */
- /* end = WORLD_CHARACTER_COUNT + start; */
- /* seed = generateWorldCharacters(&world, seed, start); */
+ start = end;
+ end = WORLD_CHARACTER_COUNT + start;
+ seed = generateWorldCharacters(&world, seed, start);
// Items.
start = end;