feat: Random npc walkabouts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user