PixSpace/src/main.rs

24 lines
482 B
Rust
Raw Normal View History

2022-07-15 22:23:24 +02:00
use bevy::prelude::*;
2022-07-16 20:46:08 +02:00
mod scene;
2022-07-15 22:23:24 +02:00
fn main() {
App::new()
2022-07-15 23:42:22 +02:00
.insert_resource(ClearColor(Color::rgb(0.0,0.02,0.1)))
.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-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