diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2022-06-01 00:26:52 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2022-06-01 00:26:52 +0200 |
| commit | 5413001f654d4ea27129cf2edfc15322f2ba27ec (patch) | |
| tree | cd5c4bda29622ca5406a7f641143c7c5ead20a51 /src/Highscore.ts | |
| parent | 0010f2de57cfa97106432ea1849c1bb75d3d99a1 (diff) | |
| download | 1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.gz 1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.zst 1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.zip | |
Spawning enemies, start Startscreen
Diffstat (limited to 'src/Highscore.ts')
| -rw-r--r-- | src/Highscore.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Highscore.ts b/src/Highscore.ts index 509289d..b70715b 100644 --- a/src/Highscore.ts +++ b/src/Highscore.ts @@ -92,13 +92,12 @@ export default class Highscore extends Drawable { else if (char === "ed") { console.log(this.score, this.name, this.place); if (this.place == null) throw Error("Place is null"); - const place = parseInt(this.place[0]) + const place = this.place[0] === 't' ? 1 :parseInt(this.place[0]) if (place < 7) { const score = { name: this.name, score: this.score.toString(), world: "01" } as Score; const ns = getStorage() ns.splice(place - 1, 0, score); ns.length = 6; - console.log(ns.forEach(console.log)); setStorage(ns); } |
