From 25e2207e0d222d0789c1fd8f4895ad9699b1e73d Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 10 Jul 2026 09:48:38 +0800 Subject: [PATCH] feat: minimal bevy window opens --- src/main.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e7a11a9..8d9b73f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,12 @@ +use bevy::prelude::*; + fn main() { - println!("Hello, world!"); + App::new() + .add_plugins(DefaultPlugins) + .add_systems(Startup, setup) + .run(); +} + +fn setup(mut commands: Commands) { + commands.spawn(Camera2d); }