From 42bdb77b51c9883e47587a82d787b74d45ec2726 Mon Sep 17 00:00:00 2001 From: Nick Baker Date: Wed, 31 May 2023 10:56:04 -0500 Subject: [PATCH] start simulation without user interaction --- src/bin/macroquad-demo.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/macroquad-demo.rs b/src/bin/macroquad-demo.rs index 456f0e4..01c7afa 100644 --- a/src/bin/macroquad-demo.rs +++ b/src/bin/macroquad-demo.rs @@ -16,6 +16,9 @@ async fn main() { // create a simulation let mut sim = bloe::LBM::::new(); + init_scene(&mut sim); + add_boundaries(&mut sim, MODE); + // event loop loop { // handle events @@ -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