Skip to main content

run_game

Function run_game 

Source
pub fn run_game<A: ActionSet, T: Debug + 'static>(game: BasicGame<A, T>)
Expand description

Runs a game on the short path until it quits, in a window of its console at twice its size: its files become the process’s bundle, and run starts it as BasicGame::start says, with no sounds, no voices and no system keyboard. Called from a plain fn main. Under cargo shuyi run --watch the game’s files on disk are laid over the embedded ones (watched_layer).