amélioration affichage pioche
This commit is contained in:
parent
88f6897008
commit
37ffa73479
1 changed files with 6 additions and 1 deletions
|
|
@ -569,7 +569,12 @@ export class Game {
|
|||
this.staticCtx.fillStyle = "#f070f0";
|
||||
|
||||
this.staticCtx.font = "40px garamond";
|
||||
this.staticCtx.fillText(this.deck.length().toString(), 507, 537);
|
||||
let l = this.deck.length();
|
||||
if (l < 10) {
|
||||
this.staticCtx.fillText(l.toString(), 517, 537);
|
||||
} else {
|
||||
this.staticCtx.fillText(l.toString(), 507, 537);
|
||||
}
|
||||
}
|
||||
|
||||
private drawResult(): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue