Change the viewport default size back to 9x9

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-03 13:50:59 -06:00
parent caf695acfe
commit ea31abe7a6

View File

@ -9,8 +9,8 @@ export class CanvasRenderer {
// and it doesn't do that until creating a renderer! It could be fixed // and it doesn't do that until creating a renderer! It could be fixed
// to do so, but then we wouldn't make a canvas so it couldn't be // to do so, but then we wouldn't make a canvas so it couldn't be
// hooked, yadda yadda // hooked, yadda yadda
this.viewport_size_x = 10; this.viewport_size_x = 9;
this.viewport_size_y = 10; this.viewport_size_y = 9;
this.canvas = mk('canvas', {width: tileset.size_x * this.viewport_size_x, height: tileset.size_y * this.viewport_size_y}); this.canvas = mk('canvas', {width: tileset.size_x * this.viewport_size_x, height: tileset.size_y * this.viewport_size_y});
this.canvas.style.setProperty('--viewport-width', this.viewport_size_x); this.canvas.style.setProperty('--viewport-width', this.viewport_size_x);
this.canvas.style.setProperty('--viewport-height', this.viewport_size_y); this.canvas.style.setProperty('--viewport-height', this.viewport_size_y);