Files
another-asteroids/src/main.rs
Robert Garrett 96e9376330
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 6m47s
Autoformat before physics feature
2025-08-06 12:32:42 -05:00

20 lines
619 B
Rust

use bevy::{prelude::*, window::WindowResolution};
use asteroids::{AsteroidPlugin, config::WINDOW_SIZE};
use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin};
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
resolution: WindowResolution::new(WINDOW_SIZE.x, WINDOW_SIZE.y),
..default()
}),
..default()
}))
.add_plugins(AsteroidPlugin)
.add_plugins(EguiPlugin::default())
.add_plugins(WorldInspectorPlugin::new())
.run();
}