From e3fe3139ff654fedd8d8bc9a3ab822a43d903464 Mon Sep 17 00:00:00 2001 From: Chris Weed Date: Wed, 17 Jul 2024 23:35:05 -0500 Subject: [PATCH] Fixed treasure island bug --- treasureIsland.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treasureIsland.ts b/treasureIsland.ts index 6406f64..3b579c2 100644 --- a/treasureIsland.ts +++ b/treasureIsland.ts @@ -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 @@ -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) {