Files
another-boids-in-rust/src/main.rs
Robert Garrett 7482130ac2 Don't have Bevy resize to full-screen
Now that I have a custom canvas, Bevy should adopt that as it's render
target rather than further modifying it.
2025-10-28 16:23:17 -05:00

23 lines
528 B
Rust

use bevy::prelude::*;
mod birdoids;
mod debug_plugin;
use birdoids::BoidsPlugin;
use debug_plugin::BoidsDebugPlugin;
fn main() {
App::new()
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
canvas: Some("#boids-canvas".to_owned()),
prevent_default_event_handling: false,
..default()
}),
..default()
}))
.add_plugins(BoidsDebugPlugin)
.add_plugins(BoidsPlugin)
.run();
}