diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-03-26 00:07:38 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-03-26 00:07:38 -0400 |
commit | 9634a1c6d79a93ab79c5354d2240ed11ad9abbe7 (patch) | |
tree | ec579b22851d7e91f6ac854ac414fbfe66a80351 /utils/raster.js | |
parent | 7f3110ec388bdf6b72579b70a5736f3f53809de4 (diff) | |
parent | 183b38854c8efef2af9e4118060bc2dc4a84befc (diff) |
Merge branch 'master' into bulletbullet
Diffstat (limited to 'utils/raster.js')
-rw-r--r-- | utils/raster.js | 2 |
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])); |