Struct GameLauncher
Source pub struct GameLauncher { }
168fn main() -> Result<(), Box<dyn Error>> {
169 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
170 *assets = make_directory_database("./resources/").unwrap();
171 }))
172 .title("Hello World!")
173 .config(Config::load_from_file("./resources/GameConfig.toml")?)
174 .run();
175 Ok(())
176}
More examples
Hide additional examples
206fn main() -> Result<(), Box<dyn Error>> {
207 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
208 *assets = make_directory_database("./resources/").unwrap();
209 }))
210 .title("Spine 2D")
211 .config(Config::load_from_file("./resources/GameConfig.toml")?)
212 .run();
213 Ok(())
214}
125fn main() -> Result<(), Box<dyn Error>> {
126 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
127 *assets = make_directory_database("./resources/").unwrap();
128 }))
129 .title("Path")
130 .config(Config::load_from_file("./resources/GameConfig.toml")?)
131 .run();
132 Ok(())
133}
276fn main() -> Result<(), Box<dyn Error>> {
277 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
278 *assets = make_directory_database("./resources/").unwrap();
279 }))
280 .title("Procedural Content Generator - Island")
281 .config(Config::load_from_file("./resources/GameConfig.toml")?)
282 .run();
283 Ok(())
284}
168fn main() -> Result<(), Box<dyn Error>> {
169 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
170 *assets = make_directory_database("./resources/").unwrap();
171 }))
172 .title("Hello World!")
173 .config(Config::load_from_file("./resources/GameConfig.toml")?)
174 .run();
175 Ok(())
176}
More examples
Hide additional examples
206fn main() -> Result<(), Box<dyn Error>> {
207 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
208 *assets = make_directory_database("./resources/").unwrap();
209 }))
210 .title("Spine 2D")
211 .config(Config::load_from_file("./resources/GameConfig.toml")?)
212 .run();
213 Ok(())
214}
125fn main() -> Result<(), Box<dyn Error>> {
126 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
127 *assets = make_directory_database("./resources/").unwrap();
128 }))
129 .title("Path")
130 .config(Config::load_from_file("./resources/GameConfig.toml")?)
131 .run();
132 Ok(())
133}
276fn main() -> Result<(), Box<dyn Error>> {
277 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
278 *assets = make_directory_database("./resources/").unwrap();
279 }))
280 .title("Procedural Content Generator - Island")
281 .config(Config::load_from_file("./resources/GameConfig.toml")?)
282 .run();
283 Ok(())
284}
168fn main() -> Result<(), Box<dyn Error>> {
169 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
170 *assets = make_directory_database("./resources/").unwrap();
171 }))
172 .title("Hello World!")
173 .config(Config::load_from_file("./resources/GameConfig.toml")?)
174 .run();
175 Ok(())
176}
More examples
Hide additional examples
206fn main() -> Result<(), Box<dyn Error>> {
207 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
208 *assets = make_directory_database("./resources/").unwrap();
209 }))
210 .title("Spine 2D")
211 .config(Config::load_from_file("./resources/GameConfig.toml")?)
212 .run();
213 Ok(())
214}
125fn main() -> Result<(), Box<dyn Error>> {
126 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
127 *assets = make_directory_database("./resources/").unwrap();
128 }))
129 .title("Path")
130 .config(Config::load_from_file("./resources/GameConfig.toml")?)
131 .run();
132 Ok(())
133}
276fn main() -> Result<(), Box<dyn Error>> {
277 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
278 *assets = make_directory_database("./resources/").unwrap();
279 }))
280 .title("Procedural Content Generator - Island")
281 .config(Config::load_from_file("./resources/GameConfig.toml")?)
282 .run();
283 Ok(())
284}
168fn main() -> Result<(), Box<dyn Error>> {
169 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
170 *assets = make_directory_database("./resources/").unwrap();
171 }))
172 .title("Hello World!")
173 .config(Config::load_from_file("./resources/GameConfig.toml")?)
174 .run();
175 Ok(())
176}
More examples
Hide additional examples
206fn main() -> Result<(), Box<dyn Error>> {
207 GameLauncher::new(GameInstance::new(Preloader).setup_assets(|assets| {
208 *assets = make_directory_database("./resources/").unwrap();
209 }))
210 .title("Spine 2D")
211 .config(Config::load_from_file("./resources/GameConfig.toml")?)
212 .run();
213 Ok(())
214}
125fn main() -> Result<(), Box<dyn Error>> {
126 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
127 *assets = make_directory_database("./resources/").unwrap();
128 }))
129 .title("Path")
130 .config(Config::load_from_file("./resources/GameConfig.toml")?)
131 .run();
132 Ok(())
133}
276fn main() -> Result<(), Box<dyn Error>> {
277 GameLauncher::new(GameInstance::new(State::default()).setup_assets(|assets| {
278 *assets = make_directory_database("./resources/").unwrap();
279 }))
280 .title("Procedural Content Generator - Island")
281 .config(Config::load_from_file("./resources/GameConfig.toml")?)
282 .run();
283 Ok(())
284}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.