From 91a71c79b21134cf2a4b49b6568d086c1fbe28e5 Mon Sep 17 00:00:00 2001 From: HF Date: Mon, 17 Jan 2022 15:39:15 +0100 Subject: [PATCH] make snapshots smaller and listen only to localhost --- ppfun-bridge/src/pixelplanet/constants.js | 4 ++-- ppfun-bridge/src/ppfunMatrixBridge.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ppfun-bridge/src/pixelplanet/constants.js b/ppfun-bridge/src/pixelplanet/constants.js index 4f2c787..a3a9fd7 100644 --- a/ppfun-bridge/src/pixelplanet/constants.js +++ b/ppfun-bridge/src/pixelplanet/constants.js @@ -1,5 +1,5 @@ -export const WIDTH = 1024; -export const HEIGHT = 768; +export const WIDTH = 800; +export const HEIGHT = 600; export const MAX_SCALE = 40; // 52 in log2 export const TILE_SIZE = 256; export const TILE_ZOOM_LEVEL = 4; diff --git a/ppfun-bridge/src/ppfunMatrixBridge.js b/ppfun-bridge/src/ppfunMatrixBridge.js index ec8914b..392ee70 100644 --- a/ppfun-bridge/src/ppfunMatrixBridge.js +++ b/ppfun-bridge/src/ppfunMatrixBridge.js @@ -169,7 +169,7 @@ class PPfunMatrixBridge { async run() { console.log('STARTING MATRIX CONNECTION'); - await this.matrixBridge.run(this.port); + await this.matrixBridge.run(this.port, null, 'localhost'); console.log('STARTING PPFUN CONNECTION'); await this.ppfunSocket.run(); console.log('BRIDGE CONNECTED');