Alle Vorrausetzungwn fürs spielfeld geschrieben
This commit is contained in:
@@ -22,7 +22,10 @@ class Game{
|
||||
}
|
||||
|
||||
startGame(){
|
||||
this.io.to(`game-${this.code}`).emit("startGame");
|
||||
this.io.to(`game-${this.code}`).emit("startGame", {
|
||||
width: this.gameLoop.playground.width,
|
||||
height: this.gameLoop.playground.height
|
||||
});
|
||||
this.gameStarted = true;
|
||||
this.gameLoop.loop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user