add: tictactoe: mobile support

This commit is contained in:
Namonay
2024-05-13 18:12:23 +02:00
parent deba3bcec1
commit 257a897506
2 changed files with 8 additions and 8 deletions

View File

@ -10,13 +10,13 @@ export class TicTacToeOnlineView extends AbstractView
this.params = params;
this.titleKey = titleKey;
this.game_id = params.id;
this.height = 560;
this.width = 560;
this.height = 510;
this.width = 510;
}
async postInit()
{
this.Morpion = new TicTacToe(this.height, this.width, 30, 55.5, document.getElementById("Morpion"), this.game_id);
this.Morpion = new TicTacToe(this.height, this.width, 30, 50, document.getElementById("Morpion"), this.game_id);
this.Morpion.DrawSuperMorpion();
await this.Morpion.init();
}