Added Working Playground

This commit is contained in:
2025-04-08 17:21:56 +02:00
parent a8220e6959
commit dcea0d24f5
7 changed files with 117 additions and 28 deletions

View File

@@ -1,10 +1,10 @@
class Loop{
/**@param {import("../../../../backend/node_modules/socket.io-client".Socket} socket @param {HTMLDivElement} tilesDiv Autocompletions VSC*/
constructor(socket, tilesDiv, tileSize){
this.socket = socket;
this.tilesDiv = tilesDiv;
import Game from "./Game.js"
this.tileSize = tileSize;
class Loop{
/**@param {import("../../../../backend/node_modules/socket.io-client".Socket} socket @param {Game} game Autocompletions VSC*/
constructor(socket, game){
this.socket = socket;
this.game = game;
this.socket.on("loop", (data) => { this.loop(data) });
}