UpdateInfoText
.Method UpdateInfoText:Int()
txtScore.SetText("Score: "+score) txtComets.SetText("Comets: "+cometCount) txtLevel.SetText("Level: "+levelNumber) txtLifes.SetText("Lifes: "+lifes)
Return 0 End
Within the UpdateInfoText
method, we update all of our UI text objects so they display the current values regarding score, the level number, how many lives are left, and also how many comets are left on the screen.