aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-08-04 13:25:13 -0400
committerLibravatar Silas Bartha <[email protected]>2024-08-04 13:25:13 -0400
commite9e89ef02f59feef2b7dee7a3110d89358df311e (patch)
tree6b5153c7eef8fe5f1423640e346fc5a4cd711aaf
parent017228ffbd8d034017955a5ad7e833511e4e3b17 (diff)
Fixed README setup example
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 561b897..a0f64c5 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,10 @@ use bevy_headless_render;
fn main() {
App::new()
.add_plugins((
- DefaultPlugins,
+ DefaultPlugins
+ .build()
+ .disable::<WinitPlugin>(),
+ ScheduleRunnerPlugin::run_loop(Duration::from_secs_f32(1.0 / TICK_RATE)),
bevy_headless_render::HeadlessRenderPlugin,
))
.run();