aboutsummaryrefslogtreecommitdiffstats
path: root/src/Highscore.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-05-25 22:55:57 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-05-25 22:55:57 +0200
commit344737031e5bbad5f24469aabf45be6535c893f3 (patch)
tree89f7312b24a2f9f6c7d48ddb1f0b5874939f6d21 /src/Highscore.ts
parent2f8b8c87fb2062313afea7b625ccb20d1bea95b9 (diff)
download1942-344737031e5bbad5f24469aabf45be6535c893f3.tar.gz
1942-344737031e5bbad5f24469aabf45be6535c893f3.tar.zst
1942-344737031e5bbad5f24469aabf45be6535c893f3.zip
Numbers and better rectangles
Diffstat (limited to 'src/Highscore.ts')
-rw-r--r--src/Highscore.ts7
1 files changed, 6 insertions, 1 deletions
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;
}
}