From be1198722d2347980b5a0b93b34f187bcff77eb7 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 30 Sep 2019 01:36:17 -0500 Subject: [PATCH] flow: bye position scaling --- server/create-entity-for-connection.js | 4 ++-- server/fixtures/kitty-fire.room.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/server/create-entity-for-connection.js b/server/create-entity-for-connection.js index b56d050..d8dc38f 100644 --- a/server/create-entity-for-connection.js +++ b/server/create-entity-for-connection.js @@ -60,8 +60,8 @@ export function createEntityForConnection(socket) { physical: {}, positioned: { state: { - x: x * 4, - y: y * 4, + x: x, + y: y, }, }, receptacle: { diff --git a/server/fixtures/kitty-fire.room.js b/server/fixtures/kitty-fire.room.js index 58b9475..818a296 100644 --- a/server/fixtures/kitty-fire.room.js +++ b/server/fixtures/kitty-fire.room.js @@ -41,8 +41,8 @@ export function kittyFireJSON() { traits: { positioned: { state: { - x: position[0] * 4, - y: position[1] * 4, + x: position[0], + y: position[1], }, }, }, @@ -67,12 +67,12 @@ export function kittyFireJSON() { // for (let i = 0; i < 20; ++i) { // addEntityWithRandomPosition('/flower-barrel.entity.json'); // } - // for (let i = 0; i < 3; ++i) { - // addEntityWithRandomPosition('/mama-kitty-spawner.entity.json'); - // } - // for (let i = 0; i < 5; ++i) { - // addEntityWithRandomPosition('/fire.entity.json'); - // } + for (let i = 0; i < 3; ++i) { + addEntityWithRandomPosition('/mama-kitty-spawner.entity.json'); + } + for (let i = 0; i < 5; ++i) { + addEntityWithRandomPosition('/fire.entity.json'); + } // for (let i = 0; i < 1; ++i) { // addEntityWithRandomPosition('/blue-fire.entity.json'); // }