summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/day_1.rs19
1 files changed, 19 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());
+}