From 55eaf48f0cbc9cb5685dd2aa8f52abe9b7818669 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 11 May 2019 22:28:06 -0500 Subject: [PATCH] chore: clean slate --- server/create-server-room.js | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/server/create-server-room.js b/server/create-server-room.js index 780f926..a332c38 100644 --- a/server/create-server-room.js +++ b/server/create-server-room.js @@ -475,26 +475,26 @@ function mamaKittySpawnerJSON() { }; } -for (let i = 0; i < 50; ++i) { - const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; - const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; - roomJSON.layers.everything.entities.push(flowerBarrelJSON([x * 4, y * 4])); -} -for (let i = 0; i < 5; ++i) { - const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; - const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; - roomJSON.layers.everything.entities.push(mamaKittySpawnerJSON()); -} -for (let i = 0; i < 60; ++i) { - const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; - const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; - roomJSON.layers.everything.entities.push(fireJSON([x * 4, y * 4])); -} -for (let i = 0; i < 5; ++i) { - const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; - const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; - roomJSON.layers.everything.entities.push(blueFireJSON([x * 4, y * 4])); -} +// for (let i = 0; i < 50; ++i) { +// const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; +// const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; +// roomJSON.layers.everything.entities.push(flowerBarrelJSON([x * 4, y * 4])); +// } +// for (let i = 0; i < 5; ++i) { +// const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; +// const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; +// roomJSON.layers.everything.entities.push(mamaKittySpawnerJSON()); +// } +// for (let i = 0; i < 60; ++i) { +// const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; +// const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; +// roomJSON.layers.everything.entities.push(fireJSON([x * 4, y * 4])); +// } +// for (let i = 0; i < 5; ++i) { +// const x = Math.floor(Math.random() * (roomSize[0] - 100)) + 50; +// const y = Math.floor(Math.random() * (roomSize[1] - 100)) + 50; +// roomJSON.layers.everything.entities.push(blueFireJSON([x * 4, y * 4])); +// } export function createRoom() { const room = (new Room()).fromJSON(roomJSON); room.world = new World();