Expand description

Simple Game Utilities

Usage

let mut timing = Timing::new(240);
let mut timer = Timer::new_with_delay(1.0, 1.0); //timer that triggers after 1s then every second
let mut sound = engine.load_from_bytes(&BYTES, duration).unwrap();

sound.play();
loop {
println!("Other");
    sound.update(&timing);
    if timer.update(&timing) {
        break;
    }
}

Modules