From c7f7c00a98152aa5d5591103f77fe76ce7ef2187 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 17 Jul 2020 21:28:01 -0400 Subject: 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. --- space.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/space.js b/space.js index 2e19a1e..8868255 100644 --- a/space.js +++ b/space.js @@ -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; -- cgit