diff --git a/dist/shattered_sword_assets/jsons/castle_template.json b/dist/shattered_sword_assets/jsons/castle_template.json index 08e6341..b79f0b4 100644 --- a/dist/shattered_sword_assets/jsons/castle_template.json +++ b/dist/shattered_sword_assets/jsons/castle_template.json @@ -28,7 +28,7 @@ "sprites": [ { "type": "player", - "x": 1, + "x": 3, "y": 13 } ] diff --git a/src/shattered_sword/Scenes/Levels.ts b/src/shattered_sword/Scenes/Levels.ts index 06ef0ea..c2e83bb 100644 --- a/src/shattered_sword/Scenes/Levels.ts +++ b/src/shattered_sword/Scenes/Levels.ts @@ -269,8 +269,6 @@ export default class Levels extends Scene { if(event.type === "back"){ this.sceneManager.changeToScene(MainMenu, {}); } - - } } diff --git a/src/shattered_sword/Scenes/MainMenu.ts b/src/shattered_sword/Scenes/MainMenu.ts index c46f3f8..3058716 100644 --- a/src/shattered_sword/Scenes/MainMenu.ts +++ b/src/shattered_sword/Scenes/MainMenu.ts @@ -15,6 +15,7 @@ import GameLevel from "./GameLevel"; import InputWrapper from "../Tools/InputWrapper"; import TextInput from "../../Wolfie2D/Nodes/UIElements/TextInput"; import Forest from "./Forest"; +import Start from "./Start"; export default class MainMenu extends Scene { protected config: ConfigManager; @@ -194,7 +195,7 @@ export default class MainMenu extends Scene { ] } } - this.sceneManager.changeToScene(Forest, {}, sceneOptions); + this.sceneManager.changeToScene(Start, {}, sceneOptions); } } diff --git a/src/shattered_sword/Scenes/Start.ts b/src/shattered_sword/Scenes/Start.ts index aaaa77f..649c024 100644 --- a/src/shattered_sword/Scenes/Start.ts +++ b/src/shattered_sword/Scenes/Start.ts @@ -14,6 +14,11 @@ export default class Start extends GameLevel { //load enemies } + startScene(): void { + super.startScene(); + this.addCheckPoint(new Vec2(3, 13), new Vec2(10, 10), "endStory", "nextLevel"); + } + protected goToNextLevel(): void { this.viewport.setZoomLevel(1); let sceneOptions = { @@ -30,14 +35,6 @@ export default class Start extends GameLevel { this.sceneManager.changeToScene(Forest, {}, sceneOptions); } - protected playStartStory(): void { - if (!this.touchedStartCheckPoint) { - this.touchedStartCheckPoint = true; - this.storyLoader("shattered_sword_assets/jsons/level1story.json"); - this.startTimer(); - } - } - protected playEndStory() { if (!this.touchedEndCheckPoint) { this.touchedEndCheckPoint = true;