aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-03-26 00:07:38 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-03-26 00:07:38 -0400
commit9634a1c6d79a93ab79c5354d2240ed11ad9abbe7 (patch)
treeec579b22851d7e91f6ac854ac414fbfe66a80351 /utils
parent7f3110ec388bdf6b72579b70a5736f3f53809de4 (diff)
parent183b38854c8efef2af9e4118060bc2dc4a84befc (diff)
Merge branch 'master' into bulletbullet
Diffstat (limited to 'utils')
-rw-r--r--utils/raster.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raster.js b/utils/raster.js
index 1e17838..c1a204b 100644
--- a/utils/raster.js
+++ b/utils/raster.js
@@ -6,7 +6,7 @@ const vec = require('./vec');
module.exports = function(space){
// just use .subsection
let tiles = {};
- dim = ms(space).map(coord => vec.charToTile(coord));
+ 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]));