From dd89667fa2e209c8eb0efca61e69359122c33983 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Fri, 27 Dec 2024 18:49:23 +0100 Subject: finished --- preloader.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'preloader.js') diff --git a/preloader.js b/preloader.js index 214421e..5c9cbae 100644 --- a/preloader.js +++ b/preloader.js @@ -11,10 +11,18 @@ function preloadAudio(a) { } export function preloadAll() { +Array.from([ASSETS.BOSHY.BULLET, ASSETS.BOSHY.NORMAL, ASSETS.BOSHY.BLOOD]).map(preload) +Object.keys(ASSETS.BOSHY.SOUNDS).map(key => preloadAudio(ASSETS.BOSHY.SOUNDS[key])) +Object.keys(ASSETS.MUSIC).map(key => preloadAudio(ASSETS.MUSIC[key])) ASSETS.PORTAL.map(preload) -Array.from([ASSETS.BOSHY.BULLET, ASSETS.BOSHY.NORMAL]).map(preload) -Array.from([ASSETS.MUSIC.PREQUEL, ASSETS.MUSIC.HELL, ASSETS.MUSIC.DEATH]).map(preloadAudio) -Array.from([ASSETS.BACKGROUND.DEFAULT, ASSETS.BACKGROUND.DARK_SUN]).map(preload) +ASSETS.HELLO_KITTY.MAIN.map(preload) +ASSETS.HELLO_KITTY.SMALL.map(preload) +preload(ASSETS.HELLO_KITTY.BULLET) +Object.keys(ASSETS.HELLO_KITTY.SOUNDS).map(key => preloadAudio(ASSETS.HELLO_KITTY.SOUNDS[key])) +preload(ASSETS.WHITE) +preload(ASSETS.GAME_OVER) +preload(ASSETS.ANTICHEESE) +preload(ASSETS.BACKGROUND.KITTY) } preloadAll() -- cgit v1.2.3