gutted old stuff, replaced with hypoloop-derived logic

This commit is contained in:
2021-11-08 19:34:29 -08:00
parent 3d911e8938
commit 560c04c89d
4 changed files with 240 additions and 77 deletions

27
examples/basic.rs Normal file
View File

@@ -0,0 +1,27 @@
use slipwave::core::{State, Loop};
fn main() {
println!("Slipwave Engine | 2021 | Skye Terran");
// create a sim loop
let mut sim = Loop::new();
// datastream
let mut x: i32 = 0;
// execute the sim loop
loop {
// step the sim forward
sim.step();
// update logic goes here
if sim.is_awake() {
//sim.get_state().debug_time();
x += 1;
println!("x: {}", x);
}
// display logic goes here
}
}