fix: game: 2d work
This commit is contained in:
@ -79,9 +79,9 @@ export class PongGame extends AGame
|
||||
|
||||
let response_data = await response.json();
|
||||
|
||||
console.log(response_data.players[0])
|
||||
response_data.players.forEach((player_data) => {
|
||||
this.players.push(new PongPlayer(this.client, this));
|
||||
let player = new PongPlayer(this.client, this)
|
||||
this.players.push(player);
|
||||
});
|
||||
|
||||
this.import(response_data);
|
||||
|
Reference in New Issue
Block a user