diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Images.ts | 4 | ||||
| -rw-r--r-- | src/drawables/Selector.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Images.ts b/src/Images.ts index f67ef30..d79c09a 100644 --- a/src/Images.ts +++ b/src/Images.ts @@ -164,9 +164,11 @@ export async function loadAllImages() { // IMGS[key as keyof typeof IMGS] = await asyncImageLoader(URL + "src/imgs/" + toKebabCase(key) + ".png") as any } const imgs = await Promise.all(prImgs) - for (const [i, key] of Object.keys(IMGS).entries()) { + let i = 0; + for (const key of Object.keys(IMGS)) { if (["empty", "font", "start"].includes(key)) continue; IMGS[key as keyof typeof IMGS] = imgs[i] + i++; } const prLetters = {} as { [key: string]: Promise<HTMLImageElement>[] } diff --git a/src/drawables/Selector.ts b/src/drawables/Selector.ts index b72d839..1bd62d1 100644 --- a/src/drawables/Selector.ts +++ b/src/drawables/Selector.ts @@ -11,5 +11,3 @@ export class Selector extends Drawable { ctx.drawImage(this.sprite, this.x, this.y) } } - - |
