scale room

This commit is contained in:
2020-01-26 11:41:52 -05:00
parent ec706ab7ab
commit b806560b63
2 changed files with 50 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ function initNet() {
if (CARDS.hasOwnProperty(msg.card.oid)) {
CARDS[msg.card.oid]._update(msg.card)
} else {
const card = new BingoCard(msg.card.oid, msg.parent, XSCALE, YSCALE);
const card = new BingoCard(msg.card.oid, msg.parent, true);
card._self = msg.card
CARDS[msg.card.oid] = card;
updateCards();
@@ -52,7 +52,7 @@ function initNet() {
SOCKET.on("get_card_rsp", msg => {
// Add self card
let card = new BingoCard(msg.card.oid, msg.parent, 1.0);
let card = new BingoCard(msg.card.oid, msg.parent);
card._self = msg.card;
CARDS[msg.card.oid] = card;