Game Logic: endGame

endGame()
  • Ends the game.
Sample Code

################## end the game
  

# import bge
import bge

# end the game
bge.logic.endGame()