feat: Random npc walkabouts

This commit is contained in:
2025-10-05 15:32:57 +01:00
parent 8f148b6894
commit 394366480b
3 changed files with 8 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ int main(int argc, char **argv) {
game->draw.camera = camera;
World *world = M_ArenaPush(arena, World);
game->world = world;
world->random = Random_Seed(29237489723847);
world->npcCount = 2;
NPC *npc1 = &world->npcs[0];
npc1->collision.pos.x = 15;
@@ -79,7 +80,7 @@ int main(int argc, char **argv) {
npc1->collision.size.x = 10;
npc1->collision.size.y = 10;
NPC *npc2 = &world->npcs[0];
NPC *npc2 = &world->npcs[1];
npc2->collision.pos.x = 15;
npc2->collision.pos.y = 15;
npc2->collision.size.x = 10;