diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-18 16:44:11 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-18 16:44:11 -0500 |
commit | ccde5508af1f68499ccf09f76edcef2f13e3adbd (patch) | |
tree | 5e854fdad570fb4f817e1b8b1d6240b15e5e1035 | |
parent | 057ccc9d8a84b9bc8673c1d387a422e3cc74190d (diff) |
fixed space.js to handle pixel-based addressing
-rw-r--r-- | space.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ function Space(){ // CLASS let writes = []; for (let line = 0; line < this.data.length; line++) for (let chr = 0; chr< this.data[line].length; chr++){ if (this.data[line][chr] == '') continue; - writes.push([[Math.floor( (charoffset[0]+line)/8 ),Math.floor( (charoffset[1]+chr)/16 )],[ (charoffset[0]+line) % 8, (charoffset[1]+chr) % 16 ],this.data[line][chr]]); + writes.push([[charoffset[0]+line,charoffset[1]+chr],this.data[line][chr]]); } return writes; } |