game: add: online

This commit is contained in:
Namonay
2024-04-08 20:18:25 +02:00
parent bceb26790d
commit 9f5ca1430d
5 changed files with 202 additions and 117 deletions

View File

@ -9,15 +9,16 @@ export class TicTacToeOnlineView extends AbstractView
super(params, lang.get('ticTacToeTitle'));
this.params = params;
this.titleKey = titleKey;
this.game_id = params.id;
this.height = 660;
this.width = 660;
}
async postInit()
{
this.Morpion = new TicTacToe(this.height, this.width, 60, 60, document.getElementById("Morpion"));
this.Morpion = new TicTacToe(this.height, this.width, 60, 60, document.getElementById("Morpion"), this.game_id);
this.Morpion.DrawSuperMorpion();
this.Morpion.init();
await this.Morpion.init();
this.Morpion.setOutline();
}