Проектная работа - WIP
bevy learning
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use bevy::ecs::system::command::*;
|
||||
use bevy::math::bounding::*;
|
||||
use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
@@ -15,16 +13,11 @@ fn main() {
|
||||
task_pool_options: TaskPoolOptions::with_num_threads(1),
|
||||
}),
|
||||
)
|
||||
.insert_resource(ClearColor(Color::srgb(0.8, 0.8, 1.0)))
|
||||
.insert_resource(ClearColor(Color::srgb(0.0, 0.75, 1.0)))
|
||||
.add_systems(Startup, setup)
|
||||
// config
|
||||
.run();
|
||||
}
|
||||
|
||||
fn setup(
|
||||
mut commands: Commands,
|
||||
mut meshes: ResMut<Assets<Mesh>>,
|
||||
mut materials: ResMut<Assets<ColorMaterial>>,
|
||||
) {
|
||||
fn setup(mut commands: Commands) {
|
||||
commands.spawn(Camera2d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user