From 4155fb2fa654de3f5b99ae0daf020dad028183b4 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 17 Jul 2022 03:48:48 +0800 Subject: update github with progress --- features/dungeonMap/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'features/dungeonMap/index.js') diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 4befbbf..7045c81 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -701,7 +701,7 @@ class DungeonMap extends Feature { roomWidth1++ } let roomWidth = Math.floor(Math.max(roomWidth1, roomWidth2) * 5 / 4) - // console.log(roomWidth) + this.mapScale = 32 / roomWidth let mortLocationOnMap roomOffsets = [rx % roomWidth - 3, ry % roomWidth - 3] @@ -813,6 +813,7 @@ class DungeonMap extends Feature { if (mortLocationOnMap && this.mortLocation) { this.offset = [mortLocationOnMap[0] - this.mortLocation[0] / this.mapScale, mortLocationOnMap[1] - this.mortLocation[1] / this.mapScale] // this.renderImage.setRGB(mortLocationOnMap[0], mortLocationOnMap[1], Renderer.color(255, 0, 0)) + ChatLib.chat(roomWidth + " " + this.offset.join(", ")) } } -- cgit