From 25adfc618e77db9a5ee3b98ce0dab0be832efed0 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Tue, 24 Dec 2024 17:58:20 +0100 Subject: hello kitty base done --- src/scenes/game.js | 13 ------------- src/scenes/hello_kitty.js | 17 +++++++++++++++++ src/scenes/prequel.js | 9 +++++++-- 3 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 src/scenes/game.js create mode 100644 src/scenes/hello_kitty.js (limited to 'src/scenes') 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() } -- cgit v1.2.3