Initial commit
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
use bevy::{prelude::*, window::PresentMode};
|
||||
|
||||
mod player;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins.set(WindowPlugin {
|
||||
primary_window: Some(Window {
|
||||
title: "Down Into The Void".into(),
|
||||
resolution: (1920, 1080).into(),
|
||||
present_mode: PresentMode::AutoVsync,
|
||||
..default()
|
||||
}),
|
||||
..default()
|
||||
}))
|
||||
.insert_resource(ClearColor(Color::srgb(0.0, 0.0, 0.0)))
|
||||
.add_systems(Startup, setup)
|
||||
.run();
|
||||
}
|
||||
|
||||
fn setup(mut command: Commands) {
|
||||
command.spawn(Camera2d);
|
||||
}
|
||||
Reference in New Issue
Block a user