Skip to content

Commit e176479

Browse files
committed
Complete tutorial after first run instead of requiring two
- Tutorial now advances to HouseScene after one sled run - Updated Grandpa's dialogue to mention "Debumont" - Removes unnecessary second run requirement for faster progression
1 parent 46cd03c commit e176479

6 files changed

Lines changed: 1177 additions & 1183 deletions

File tree

Lines changed: 1165 additions & 1165 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-BroqOXVK.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-Cq8ADPXp.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
</style>
3333
<link rel="modulepreload" crossorigin href="data:text/javascript;base64,Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXBoYXNlci1sMHNOUk5LWi5qcy5tYXAK">
34-
<script type="module" crossorigin src="./assets/index-Cq8ADPXp.js"></script>
34+
<script type="module" crossorigin src="./assets/index-BroqOXVK.js"></script>
3535
</head>
3636
<body>
3737
<div id="game-container"></div>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
display: block;
3131
}
3232
</style>
33-
<script type="module" crossorigin src="./dist/assets/index-Cq8ADPXp.js"></script>
33+
<script type="module" crossorigin src="./dist/assets/index-BroqOXVK.js"></script>
3434
<link rel="modulepreload" crossorigin href="./dist/assets/phaser-l0sNRNKZ.js">
3535
</head>
3636
<body>

src/scenes/TutorialScene.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,22 +335,16 @@ export class TutorialScene extends Phaser.Scene {
335335
this.player.setAngle(0);
336336
this.completedRuns++;
337337

338-
if (this.completedRuns === 1) {
339-
this.time.delayedCall(1000, () => {
340-
this.showDialogue("Great! Now walk back up and try again.");
341-
this.tutorialStep = 5;
342-
});
343-
} else if (this.completedRuns >= 2) {
344-
this.time.delayedCall(1000, () => {
345-
this.showDialogue("You're a natural! Ready for the big mountain?");
346-
this.tutorialStep = 6;
347-
348-
// Complete tutorial after a moment
349-
this.time.delayedCall(3000, () => {
350-
this.completeTutorial();
351-
});
338+
// Complete tutorial after first run
339+
this.time.delayedCall(1000, () => {
340+
this.showDialogue("You're a natural! Time to hit Debumont!");
341+
this.tutorialStep = 6;
342+
343+
// Complete tutorial after a moment
344+
this.time.delayedCall(3000, () => {
345+
this.completeTutorial();
352346
});
353-
}
347+
});
354348
}
355349

356350
private checkTutorialProgress(): void {

0 commit comments

Comments
 (0)