First make the main game loop an infinite loop:
While 1
Now in the title_screen function check for the Escape key being hit. If it is, End:
Function title_screen()
if KeyHit(1) End
End Function
While 1
Now in the title_screen function check for the Escape key being hit. If it is, End:
Function title_screen()
if KeyHit(1) End
End Function