Skip to content

Commit

Permalink
Fixed treasure island bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikketer committed Jul 18, 2024
1 parent b0696a3 commit e3fe313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treasureIsland.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace TreasureIsland {

export function init() {
scene.setBackgroundColor(9)

music.play(music.createSong(assets.song`Treasure Island Theme`), music.PlaybackMode.LoopingInBackground)

island = sprites.create(assets.image`Treasarr Island`)
island.x = 80
Expand Down Expand Up @@ -58,6 +56,8 @@ namespace TreasureIsland {
treasure.x = 120
treasure.y = 85
treasure.z = 85

music.play(music.createSong(assets.song`Treasure Island Theme`), music.PlaybackMode.LoopingInBackground)
}

export function onComplete(callback: () => void) {
Expand Down

0 comments on commit e3fe313

Please sign in to comment.