mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
aefe1f0739
Co-authored-by: Mike <mike.hsu@gmail.com>
15 lines
379 B
Rust
15 lines
379 B
Rust
//! Create an application without winit (runs single time, no event loop).
|
|
|
|
use bevy::prelude::*;
|
|
use bevy::winit::WinitPlugin;
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(DefaultPlugins.build().disable::<WinitPlugin>())
|
|
.add_systems(Update, setup_system)
|
|
.run();
|
|
}
|
|
|
|
fn setup_system(mut commands: Commands) {
|
|
commands.spawn(Camera3dBundle::default());
|
|
}
|