chore: clean slate

This commit is contained in:
cha0s 2019-05-11 22:28:06 -05:00
parent 54d132ffdb
commit 55eaf48f0c

View File

@ -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();