From b467874608b50d918a35000fadf10f359dcd9464 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 1 Aug 2024 15:44:38 -0500 Subject: [PATCH] fun: space --- app/server/create/homestead.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/server/create/homestead.js b/app/server/create/homestead.js index d278670..7bcedc0 100644 --- a/app/server/create/homestead.js +++ b/app/server/create/homestead.js @@ -196,7 +196,14 @@ export default async function createHomestead(id) { Vulnerable: {}, }; for (let i = 0; i < 50; ++i) { - entities.push(kitty); + entities.push({ + ...kitty, + Position: { + ...kitty.Position, + x: 250 + (Math.random() - 0.5) * 300, + y: 250 + (Math.random() - 0.5) * 300, + }, + }); } entities.push({ Collider: {