Exiting Parts Of A Game

Blitz3D Forums/Blitz3D Beginners Area/Exiting Parts Of A Game

So would I then have the functions like this?


Function Title_Screen()

While Not Keyhit(1) ;If I havent pressed escape key

 Cls
 Text 320,240,"T I T L E"
  
 If keyhit(57) then GAME_STATE=MAIN_GAME ;space bar goes to next GAME_STATE 

Flip

Wend
GAME_STATE=GAME_END
End Function

Function Main_Game()

While Not Keyhit(1)

Cls
Text 320,240,"M A I N    G A M E"

Flip
Wend
GAME_STATE=TITLE_SCREEN ; or the next section e.g game over/hiscore etc?

End Function



Thanks ever so much guys!!