summaryrefslogtreecommitdiff
path: root/preloader.js
diff options
context:
space:
mode:
Diffstat (limited to 'preloader.js')
-rw-r--r--preloader.js14
1 files changed, 11 insertions, 3 deletions
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()