summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-11-18 21:26:47 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-11-18 21:26:47 +0200
commit21b8ff00e781f0c93876299312befb3207941698 (patch)
treec58de93202e32d3a02e9eb50db58c745350007dd /src/bin
Initial commit for 2020
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());
+}