endGame()
ends the game and prompt the player to load a saved game or start a new game. Anything which should be displayed in relation to the ending should be done so before endGame()
is called.endGame()
is an alternate form of display()
and it can take the same parameters as display()
. Parsing an image to this function will cause the image to remain as the background after the game ends, while parsing text or a sequence of text will cause the last displayed text to remain after the game ends. This allows for more interesting and informing ending scenes.display()
reference for more detail on how to parse images and text to this function.
The copyright of all images rendered by me goes to their respective owners.
© 2008 Daniel Svejstrup Christensen