diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-17 03:48:48 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-17 03:48:48 +0800 |
commit | 4155fb2fa654de3f5b99ae0daf020dad028183b4 (patch) | |
tree | bc953150199e0daa9fa3f1a5469c83e4073da2f3 /features/dungeonMap/index.js | |
parent | 63c4a3a894f3a49a67fcd0daeaeb11ffd8ba1622 (diff) | |
download | SoopyV2-4155fb2fa654de3f5b99ae0daf020dad028183b4.tar.gz SoopyV2-4155fb2fa654de3f5b99ae0daf020dad028183b4.tar.bz2 SoopyV2-4155fb2fa654de3f5b99ae0daf020dad028183b4.zip |
update github with progress
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r-- | features/dungeonMap/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(", ")) } } |