update splashscreen bg and fix the inheritance of start story
This commit is contained in:
parent
237ba6659b
commit
555d5538a8
BIN
dist/shattered_sword_assets/images/brown.png
vendored
Normal file
BIN
dist/shattered_sword_assets/images/brown.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
|
@ -976,7 +976,7 @@ export default class GameLevel extends Scene {
|
|||
protected playStartStory() {
|
||||
if (!this.touchedStartCheckPoint) {
|
||||
this.touchedStartCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/level1story.json");
|
||||
this.storyLoader("shattered_sword_assets/jsons/story.json");
|
||||
this.startTimer();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,8 +22,8 @@ export default class SplashScreen extends Scene {
|
|||
|
||||
loadScene(): void {
|
||||
//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("logo", "shattered_sword_assets/images/brown.png");
|
||||
// Load the menu song
|
||||
//this.load.audio("menu", "assets/music/menu.mp3");
|
||||
}
|
||||
|
|
|
@ -45,4 +45,12 @@ export default class Tutorial extends GameLevel {
|
|||
this.viewport.setZoomLevel(1);
|
||||
this.sceneManager.changeToScene(Porcelain);
|
||||
}
|
||||
|
||||
protected playStartStory(): void {
|
||||
if (!this.touchedStartCheckPoint) {
|
||||
this.touchedStartCheckPoint = true;
|
||||
this.storyLoader("shattered_sword_assets/jsons/level1story.json");
|
||||
this.startTimer();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user