![]() |
naev 0.12.5
|
Handles pausing and resuming the game. More...
#include "pause.h"#include "ntracing.h"#include "player.h"#include "sound.h"
Go to the source code of this file.
Functions | |
| void | pause_game (void) |
| Pauses the game. | |
| void | unpause_game (void) |
| Unpauses the game. | |
| void | pause_setSpeed (double mod) |
| Adjusts the game's dt modifier. | |
| void | pause_player (void) |
| Pauses the game and marks the pause as player-initiated. | |
Variables | |
| int | paused = 0 |
| int | player_paused = 0 |
| double | dt_mod = 1. |
Handles pausing and resuming the game.
Main trick to pausing/unpausing is to allow things based on time to behavie properly when the toolkit opens a window.
Definition in file pause.c.
| void pause_player | ( | void | ) |
| void pause_setSpeed | ( | double | mod | ) |