je cède au caprices de Etienne le GROS BEBE

This commit is contained in:
Namonay 2024-05-13 18:06:04 +02:00
parent 11e8be0830
commit deba3bcec1
2 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ class TicTacToe
{ {
this.context.beginPath(); this.context.beginPath();
this.context.fillStyle = "white"; this.context.fillStyle = "white";
this.context.font = `40px Verdana`; this.context.font = `20px Verdana`;
this.context.fillText(sec, this.width / 2, this.gap / 2); this.context.fillText(sec, this.width / 2, this.gap / 2);
this.context.closePath(); this.context.closePath();
sec--; sec--;
@ -126,7 +126,7 @@ class TicTacToe
{ {
this.context.beginPath(); this.context.beginPath();
this.context.fillStyle = "white"; this.context.fillStyle = "white";
this.context.font = `40px Verdana`; this.context.font = `20px Verdana`;
this.context.fillText(sec, this.width / 2, this.gap / 2); this.context.fillText(sec, this.width / 2, this.gap / 2);
this.context.closePath(); this.context.closePath();
} }

View File

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