From ef76266d1a61c02f1721efedc830fab12279d2b9 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Thu, 2 Jun 2022 11:59:01 +0200 Subject: Merge + startAnim imgs --- src/Images.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Images.ts') diff --git a/src/Images.ts b/src/Images.ts index 99e9b02..aee7e53 100644 --- a/src/Images.ts +++ b/src/Images.ts @@ -120,13 +120,14 @@ export const IMGS = { }, ' ': {} as HTMLImageElement, }, + start: {} as any, selector: {} as HTMLImageElement, empty: {} as HTMLImageElement, }; // window.IMGS = IMGS; export default async function loadAllImages() { for (const key in IMGS) { - if (["empty", "font"].includes(key)) continue; + if (["empty", "font", "start"].includes(key)) continue; IMGS[key as keyof typeof IMGS] = await asyncImageLoader("/src/imgs/" + toKebabCase(key) + ".png") as any } // for (const color of ['yellow', 'white', 'blue', 'red', 'green', 'purple']) { @@ -146,6 +147,8 @@ export default async function loadAllImages() { for (const c of allChars.filter(ch => !alphabet.includes(ch))) { IMGS.font.small.white[c] = await asyncImageLoader("/src/imgs/font/small/white/" + c + ".png"); } + for (let i = 1; i <= 215; i++) + IMGS.start[i] = await asyncImageLoader("/src/imgs/start/" + i + ".png"); } async function asyncImageLoader(url: string): Promise { return new Promise((resolve, reject) => { -- cgit v1.3.1