Added control panel

This commit is contained in:
MaxRobinsonTheGreat
2020-07-08 19:32:05 -06:00
parent 2ba56abb1d
commit c6b0a5bafc
9 changed files with 176 additions and 37 deletions

View File

@@ -5,9 +5,9 @@ class Renderer {
this.cell_size = cell_size;
this.env = env;
this.canvas = document.getElementById(canvas_id);
this.ctx = canvas.getContext("2d");
this.canvas.width = window.innerWidth;
this.canvas.height = window.innerHeight;
this.ctx = this.canvas.getContext("2d");
this.canvas.width = $('.env').width();
this.canvas.height = $('.env').height();
this.height = canvas.height;
this.width = canvas.width;
this.cells_to_render = new Set();