diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..183ac42 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,19 @@ +use bevy::{prelude::*, render::camera::ScalingMode}; + +mod debug; + +use debug::DebugPlugin; + +fn main() { + App::new() + .add_plugins(DefaultPlugins) + .add_plugin(DebugPlugin) + .add_startup_system(spawn_camera) + .run(); +} + +fn spawn_camera(mut commands: Commands) { + let mut camera = OrthographicCameraBundle::new_2d(); + camera.orthographic_projection.scaling_mode = ScalingMode::None; + commands.spawn_bundle(camera); +} |