From 344737031e5bbad5f24469aabf45be6535c893f3 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Wed, 25 May 2022 22:55:57 +0200 Subject: Numbers and better rectangles --- src/Highscore.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Highscore.ts') diff --git a/src/Highscore.ts b/src/Highscore.ts index f823393..563c16c 100644 --- a/src/Highscore.ts +++ b/src/Highscore.ts @@ -50,9 +50,14 @@ export default class Highscore extends Drawable { while (x < 275) { ctx.drawImage(IMGS.font.yellow['-'], x, y); x += this.dx / 2; } x = 17; y += this.dy; - const botTxt = ['a', 't', 'h', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', ' ', ...this.name, ' ', 'z', 'y']; + const botTxt = ['2', 't', 'h', ' ', '0', '0', '0', '0', '7', '5', '9', ' ', ...this.name, ' ', 'z', 'y']; for (let char of botTxt) { + try { ctx.drawImage(IMGS.font.yellow[char], x, y); + + } catch(e) { + debugger + } x += this.dx / 2; } } -- cgit v1.3.1