diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/day_1.rs | 19 | ||||
-rw-r--r-- | src/lib.rs | 1 | ||||
-rw-r--r-- | src/main.rs | 3 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/bin/day_1.rs b/src/bin/day_1.rs new file mode 100644 index 0000000..3b80d88 --- /dev/null +++ b/src/bin/day_1.rs @@ -0,0 +1,19 @@ +use bevy::prelude::*; + +fn main() { + App::build() + .add_resource(WindowDescriptor { + title: "Advent of Code".to_string(), + width: 1920, + height: 1080, + ..Default::default() + }) + .add_resource(ClearColor(Color::rgb(0., 0., 0.))) + .add_startup_system(setup.system()) + .add_plugins(DefaultPlugins) + .run(); +} + +fn setup(mut commands: Commands) { + commands.spawn(Camera2dComponents::default()); +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1 @@ + diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} |