To display the game score, follow the ensuing steps:
RenderGame
method again.Method RenderGame:Int() 'Render Ground SetColor(0, 0, 150) DrawRect(0, cHeight-40, cWidth, 40)
SetColor(255, 255, 255) DrawText("Level: "+levelNumber, cWidth/2, cHeight-34, 0.5, 0.0) DrawText("Score: "+score, cWidth/2, cHeight - 20, 0.5, 0.0) RenderCities() RenderLaunchers()