Skip to content

Commit

Permalink
start simulation without user interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbaker1 committed May 31, 2023
1 parent 43ecedd commit 42bdb77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bin/macroquad-demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ async fn main() {
// create a simulation
let mut sim = bloe::LBM::<XDIM, YDIM>::new();

init_scene(&mut sim);
add_boundaries(&mut sim, MODE);

// event loop
loop {
// handle events
Expand All @@ -38,7 +41,7 @@ async fn main() {
"press R to start/reset simulation",
20.0,
screen_height() - 20.0,
22.0,
28.0,
GREEN,
);
// wait for the next render
Expand Down

0 comments on commit 42bdb77

Please sign in to comment.