diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-07-17 21:28:01 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-07-17 21:28:01 -0400 |
commit | c7f7c00a98152aa5d5591103f77fe76ce7ef2187 (patch) | |
tree | e0ad9fca8f26867b79498a65f8fc3f93438abc2e | |
parent | 4b903aea15529fe441bcb8189076b99e79542a23 (diff) |
realized that conformity was a madeup concept
In a more efficient rewrite of examples/clear.js, I've found that the
fromfetch function just ignored large swathes of text. I still have no
idea what cell_props means.
-rw-r--r-- | space.js | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -32,7 +32,6 @@ class Space{ for (let line=0; line<8; line++) this.data.push([]); // Adds lines for (let x=dimension[0][1]; x<=dimension[1][1]; x++){ - if (!tiles[[y,x]]) tiles[[y,x]] = {"content":' '.repeat(16*8),"properties":{"cell_props":{}}}; tilein.call(this, tiles[[y,x]], y-dimension[0][0]); } } @@ -43,12 +42,8 @@ class Space{ let read = 0; //line of cont to read for (let line=0; line<8; line++){ let curline = line+8*tilerow; - if (conform && incl.includes(line)){ - for (let i=0; i<16; i++) this.data[curline].push(' '); - } else { - this.data[curline].push(...cont[read]); - read++; - } + this.data[curline].push(...cont[read]); + read++; } } return this; |