In the next method, a screen will be created and will display Game Over and the score that the player had reached.
CreateGameOverScreen
into the game
class.Method CreateGameOverScreen:Int ()
layerGameOver
.eng.SetDefaultLayer(layerGameOver)
Local b := eng.CreateBox(cw/1.5,ch/4,cw/2,ch/2) b.SetColor(0,0,255)
GAME OVER
.Local tx1 := eng.CreateText(font1,"**** GAME OVER ****",cw/2,ch/2-30,3)
txtFinalScore = eng.CreateText(font1,"SCORE: 000000",cw/2,ch/2+30,3) Return 0 End
52.14.22.250