Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
10.1 Add instructions to the Game Over scene
engine.SetDefaultLayer(game_over_layer)
Local font:ftFont = engine.LoadFont("vt323_sample_2.txt")
Local game_over_text:ftObject = engine.CreateText(font, "GAME OVER",
engine.GetCanvasWidth()/2 - 75, engine.GetCanvasHeight()/2 - 50, engine.taTopLeft)
' Add instructions to the game over scene
Local game_over_instruction:ftObject = engine.CreateText(font, "Press ENTER to Restart",
engine.GetCanvasWidth()/4, engine.GetCanvasHeight()/2 + 50, engine.taTopLeft)
game_over_scene.SetActive(False)
engine.SetDefaultLayer(play_layer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment