Alle Vorrausetzungwn fürs spielfeld geschrieben
This commit is contained in:
17
frontend/game/scripts/Game/Loop.js
Normal file
17
frontend/game/scripts/Game/Loop.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
|
||||
this.tileSize = tileSize;
|
||||
|
||||
this.socket.on("loop", (data) => { this.loop(data) });
|
||||
}
|
||||
|
||||
loop(data){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default Loop;
|
||||
Reference in New Issue
Block a user