game_restart()
Jump to navigation
Jump to search
Description
Restarts the game and resets all objects to there beginning state and goes to the original room.
Parameters
Parameter | Description |
---|---|
none | this function has no parameters |
Return Values
void: This function does not return anything.
Example Call
// demonstrates restarting the game if the player dies
if (health <= 0){
game_restart();
}