Skip to content

Commit

Permalink
fix(scenes): fix pause in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 29, 2025
1 parent 9eb2e48 commit 946e048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gameobjects/pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function addPause() {
text: 'Exit',
onClick() {
go(Scene.Title)
music.stop()
music?.stop()
},
parent: pauseMenu,
})
Expand Down
3 changes: 2 additions & 1 deletion src/scenes/tutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
addReward,
addScore,
addText,
game,
} from '../gameobjects'
import { gameState } from '../helpers'

Expand Down Expand Up @@ -118,7 +119,7 @@ scene(Scene.Tutorial, () => {
const { x } = center()

instructions.forEach((instruction, index) => {
wait(instruction.start, () => {
game.wait(instruction.start, () => {
if (instruction.start) {
play(Sound.Shoot, { detune: index * 100 })
}
Expand Down

0 comments on commit 946e048

Please sign in to comment.