update splashscreen bg and fix the inheritance of start story

This commit is contained in:
Kelly Peng 2022-04-25 23:17:59 -04:00
parent 237ba6659b
commit 555d5538a8
4 changed files with 10 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -976,7 +976,7 @@ export default class GameLevel extends Scene {
protected playStartStory() { protected playStartStory() {
if (!this.touchedStartCheckPoint) { if (!this.touchedStartCheckPoint) {
this.touchedStartCheckPoint = true; this.touchedStartCheckPoint = true;
this.storyLoader("shattered_sword_assets/jsons/level1story.json"); this.storyLoader("shattered_sword_assets/jsons/story.json");
this.startTimer(); this.startTimer();
} }
} }

View File

@ -22,8 +22,8 @@ export default class SplashScreen extends Scene {
loadScene(): void { loadScene(): void {
//load images //load images
this.load.image("logo", "shattered_sword_assets/images/black.png");
this.load.image("backgroundImage", "shattered_sword_assets/images/logo.png"); this.load.image("backgroundImage", "shattered_sword_assets/images/logo.png");
this.load.image("logo", "shattered_sword_assets/images/brown.png");
// Load the menu song // Load the menu song
//this.load.audio("menu", "assets/music/menu.mp3"); //this.load.audio("menu", "assets/music/menu.mp3");
} }

View File

@ -45,4 +45,12 @@ export default class Tutorial extends GameLevel {
this.viewport.setZoomLevel(1); this.viewport.setZoomLevel(1);
this.sceneManager.changeToScene(Porcelain); this.sceneManager.changeToScene(Porcelain);
} }
protected playStartStory(): void {
if (!this.touchedStartCheckPoint) {
this.touchedStartCheckPoint = true;
this.storyLoader("shattered_sword_assets/jsons/level1story.json");
this.startTimer();
}
}
} }