update examples and doc comments code to reflect recent changes

This commit is contained in:
Gered 2023-03-29 15:50:30 -04:00
parent cfd7d479ec
commit 1815a2236c
8 changed files with 9 additions and 9 deletions

View file

@ -48,7 +48,7 @@ impl AudioGenerator for SineWaveGenerator {
}
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let mut system = SystemBuilder::new() //
.window_title("Audio Playback")
.vsync(true)

View file

@ -18,7 +18,7 @@ struct Ball {
}
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let mut system = SystemBuilder::new() //
.window_title("Flying Balls!")
.vsync(true)

View file

@ -11,7 +11,7 @@ mod entities;
mod states;
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let system = SystemBuilder::new() //
.window_title("Flying Balls")
.vsync(true)

View file

@ -188,7 +188,7 @@ impl Game {
}
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let system = SystemBuilder::new() //
.window_title("Slime Stabbing Simulator")
.vsync(true)

View file

@ -210,7 +210,7 @@ impl App {
//////////////////////////////////////////////////////////////////////////////////////////////////
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let system = SystemBuilder::new() //
.window_title("Complicated Template")
.vsync(true)

View file

@ -3,7 +3,7 @@ use anyhow::Result;
use ggdt::prelude::*;
fn main() -> Result<()> {
let config = DosLikeConfig::new();
let config = DosLikeConfig::default();
let mut system = SystemBuilder::new() //
.window_title("Minimal Template")
.vsync(true)

View file

@ -296,7 +296,7 @@ where
/// ```no_run
/// use ggdt::prelude::*;
///
/// let config = DosLikeConfig::new();
/// let config = DosLikeConfig::default();
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
///
/// while !system.do_events().unwrap() {
@ -311,7 +311,7 @@ where
/// ```no_run
/// use ggdt::prelude::*;
///
/// let config = DosLikeConfig::new();
/// let config = DosLikeConfig::default();
/// let mut system = SystemBuilder::new().window_title("Example").build(config).unwrap();
///
/// 'mainloop: loop {

View file

@ -4,7 +4,7 @@
//! ```no_run
//! use ggdt::prelude::*;
//!
//! let config = DosLikeConfig::new();
//! let config = DosLikeConfig::default();
//! let mut system = SystemBuilder::new()
//! .window_title("Example")
//! .build(config)