From dd26190c2ebaac4a7a3b8e8a29ea51f8be03f529 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 16 Jul 2020 13:40:35 -0400
Subject: raster.js was totally incorrect (new ver uses real, not tile coords)
---
utils/raster.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/raster.js b/utils/raster.js
index c1a204b..c464de6 100644
--- a/utils/raster.js
+++ b/utils/raster.js
@@ -8,8 +8,8 @@ module.exports = function(space){
let tiles = {};
let dim = ms(space).map(coord => vec.charToTile(coord));
for (let y=dim[0][0]; y<=dim[0][1]; y++) for (let x=dim[1][0]; x<=dim[1][1]; x++){
- let tile = tileToChar([y,x]);
- tiles[tile] = space.subsection(tile, vec.add(tile, [8,16]));
+ let tile = [y,x];
+ tiles[tile] = space.subsection([tile, vec.add(tile, [8,16])]);
}
return tiles
}
--
cgit