aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-17 21:28:01 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-17 21:28:01 -0400
commitc7f7c00a98152aa5d5591103f77fe76ce7ef2187 (patch)
treee0ad9fca8f26867b79498a65f8fc3f93438abc2e
parent4b903aea15529fe441bcb8189076b99e79542a23 (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.js9
1 files 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;