Skip to content

Commit

Permalink
Fixed boat battle bug with no ending
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikketer committed Jul 18, 2024
1 parent 0211913 commit 7f9bfd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions boatBattle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace BoatBattle {
export function init() {
scene.setBackgroundColor(6)
scene.setBackgroundImage(assets.image`Boat Battle`)
enemies = []
_isDone = false

// Spawn the players
Expand Down Expand Up @@ -78,6 +79,7 @@ namespace BoatBattle {
player1.destroy()
player2.destroy()
enemies.forEach((e) => e.destroy())
enemies = []
treasure.destroy()

scene.setBackgroundImage(assets.image`empty`)
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const playerState = {
currentIsland: ''
}

const version: string = 'v1.0'
const version: string = 'v1.1'
const debugMode: boolean = false

let currentState: States
Expand Down

0 comments on commit 7f9bfd1

Please sign in to comment.