2022-07-15 22:23:24 +02:00
|
|
|
use bevy::prelude::*;
|
|
|
|
|
2022-07-16 20:46:08 +02:00
|
|
|
mod scene;
|
2022-07-17 23:18:17 +02:00
|
|
|
mod offaxis;
|
2022-07-16 20:46:08 +02:00
|
|
|
|
2022-07-15 22:23:24 +02:00
|
|
|
fn main() {
|
|
|
|
App::new()
|
2022-07-18 12:20:02 +02:00
|
|
|
.insert_resource(ClearColor(Color::rgb(0.0,0.1,0.9)))
|
2022-07-15 23:42:22 +02:00
|
|
|
.insert_resource(WindowDescriptor{
|
|
|
|
title: "PixSpace".to_string(),
|
|
|
|
width: 1280.0,
|
|
|
|
height: 800.0,
|
|
|
|
..Default::default()
|
|
|
|
})
|
|
|
|
.add_plugins(DefaultPlugins)
|
2022-07-16 20:46:08 +02:00
|
|
|
.add_plugin(scene::BuildScenePlugin)
|
2022-07-17 23:18:17 +02:00
|
|
|
.add_startup_system(offaxis::camera_setup)
|
|
|
|
// .add_system_to_stage(
|
|
|
|
// CoreStage::PostUpdate,
|
|
|
|
// camera_system::<offaxis::OffAxisProjection>,
|
|
|
|
// )
|
2022-07-15 23:42:22 +02:00
|
|
|
// .add_system(hello_world)
|
|
|
|
// .add_startup_system(add_scene)
|
|
|
|
// .add_system(print_positions)
|
2022-07-15 22:23:24 +02:00
|
|
|
.run();
|
|
|
|
}
|
2022-07-16 20:46:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|