summaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/game.js13
-rw-r--r--src/scenes/hello_kitty.js17
-rw-r--r--src/scenes/prequel.js9
3 files changed, 24 insertions, 15 deletions
diff --git a/src/scenes/game.js b/src/scenes/game.js
deleted file mode 100644
index 1640aa5..0000000
--- a/src/scenes/game.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Engine } from "../engine.js"
-import { MUSIC } from "../assets.js"
-
-export function start() {
- Engine.playMusic(MUSIC.SOLGRYN)
-}
-
-
-export function update() {
-}
-
-export function draw() {
-}
diff --git a/src/scenes/hello_kitty.js b/src/scenes/hello_kitty.js
new file mode 100644
index 0000000..f7b5c8c
--- /dev/null
+++ b/src/scenes/hello_kitty.js
@@ -0,0 +1,17 @@
+import { Engine } from "../engine.js"
+import { MUSIC } from "../assets.js"
+import { HelloKittyBackground } from "../entities/hello_kitty_background.js"
+import { HelloKitty } from "../entities/hello_kitty.js"
+
+export function start() {
+ Engine.radio.playMusic(MUSIC.HELL)
+ new HelloKittyBackground()
+ new HelloKitty()
+}
+
+
+export function update() {
+}
+
+export function draw() {
+}
diff --git a/src/scenes/prequel.js b/src/scenes/prequel.js
index f24ef99..83b8ba4 100644
--- a/src/scenes/prequel.js
+++ b/src/scenes/prequel.js
@@ -1,13 +1,18 @@
import { Engine } from "../engine.js"
import { MUSIC } from "../assets.js"
+import { Portal } from "../entities/portal.js"
+
+let portal
export function start() {
- Engine.playMusic(MUSIC.PREQUEL)
+ Engine.radio.playMusic(MUSIC.PREQUEL)
+ portal = new Portal()
}
-
export function update() {
+ portal.update()
}
export function draw() {
+ portal.draw()
}