aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-16 13:40:35 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-16 13:40:35 -0400
commitdd26190c2ebaac4a7a3b8e8a29ea51f8be03f529 (patch)
treece971cae2bd560fe1314a76b0e50b28537c75f15
parentdeb42c7d82675b04159a8c5032ff7fea96db5c6a (diff)
raster.js was totally incorrect (new ver uses real, not tile coords)
-rw-r--r--utils/raster.js4
1 files 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
}