diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-12-24 17:58:20 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-12-24 17:58:20 +0100 |
commit | 25adfc618e77db9a5ee3b98ce0dab0be832efed0 (patch) | |
tree | 36ca56758ddd4674ab5a43df4b76bbfcc5a47af1 /src/scenes | |
parent | a840990bdcabf45fb0d377478ba0ab27222434ae (diff) |
hello kitty base done
Diffstat (limited to 'src/scenes')
-rw-r--r-- | src/scenes/game.js | 13 | ||||
-rw-r--r-- | src/scenes/hello_kitty.js | 17 | ||||
-rw-r--r-- | src/scenes/prequel.js | 9 |
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() } |