run

Function run 

Source
pub fn run<S>(name: impl Into<String>, update: impl Fn(&mut S)) -> Result
where S: Default,
Expand description

Simple entrypoint function for baba games.

If you don’t currently need to set any engine options, this is simply a shorthand for that:

baba::game("My game", MyGame::update)
    .run()

See game for more!

Examples found in repository?
examples/transform.rs (line 4)
3fn main() -> baba::Result {
4    baba::run("Example", State::update)
5}