Language

onWin


onWin()

Description

onWin() is a callback function called when the player wins the game.


Examples

Play a sound on win

  1. function onWin()
  2.     Sound.play("ending.ogg", true)
  3. end