improve gui rendering

This commit is contained in:
LabyStudio
2022-02-03 12:41:29 +01:00
parent 85c62325c1
commit 88db6b5e80
4 changed files with 89 additions and 75 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ window.Minecraft = class {
* Create Minecraft instance and render it on a canvas
*/
constructor(canvasWrapperId) {
this.worldRenderer = new WorldRenderer(this, canvasWrapperId);
this.window = new GameWindow(this, this.worldRenderer, canvasWrapperId);
this.window = new GameWindow(this, canvasWrapperId);
this.worldRenderer = new WorldRenderer(this, this.window);
this.timer = new Timer(20);
this.frames = 0;