Statt Table nun canvas zur rendern im Frontend

This commit is contained in:
2025-04-16 11:51:30 +02:00
parent 868ccc5649
commit f2c3496e71
5 changed files with 84 additions and 62 deletions

View File

@@ -2,7 +2,7 @@ class UIManager{
constructor(){
this.mainDiv = document.getElementById("mainMenu");
this.gameTable = undefined;
this.gameCanvasDiv = undefined;
}
// Erstellen des Grundgerüstes der UI
@@ -14,9 +14,10 @@ class UIManager{
body.style.backgroundRepeat = "no-repeat";
body.style.backgroundColor = "#3b3b3f";
this.gameTable = document.createElement("table");
this.gameCanvasDiv = document.createElement("div");
this.gameCanvasDiv.id = "gameCanvasDiv"
this.mainDiv.appendChild(this.gameTable);
this.mainDiv.appendChild(this.gameCanvasDiv);
}
// Erstellen der Info für welche Schlange man ist