From 21b8ff00e781f0c93876299312befb3207941698 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Wed, 18 Nov 2020 21:26:47 +0200 Subject: Initial commit for 2020 --- src/bin/day_1.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/bin/day_1.rs (limited to 'src/bin') 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()); +} -- cgit v1.2.3