Проектная работа - WIP
bevy learning
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/// Эксперименты в ходе прохождения туториала:
|
/// Эксперименты в ходе прохождения туториала:
|
||||||
/// https://github.com/fogarecious/bevy_tutorial
|
/// https://github.com/fogarecious/bevy_tutorial
|
||||||
use bevy::prelude::*;
|
use bevy::{prelude::*, winit::WinitSettings};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
@@ -15,6 +15,7 @@ fn main() {
|
|||||||
task_pool_options: TaskPoolOptions::with_num_threads(1),
|
task_pool_options: TaskPoolOptions::with_num_threads(1),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
.insert_resource(WinitSettings::desktop_app())
|
||||||
.insert_resource(ClearColor(Color::srgb(0.3, 0.6, 0.8)))
|
.insert_resource(ClearColor(Color::srgb(0.3, 0.6, 0.8)))
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
.run();
|
.run();
|
||||||
@@ -22,4 +23,9 @@ fn main() {
|
|||||||
|
|
||||||
fn setup(mut commands: Commands) {
|
fn setup(mut commands: Commands) {
|
||||||
commands.spawn(Camera2d);
|
commands.spawn(Camera2d);
|
||||||
|
|
||||||
|
commands.spawn(
|
||||||
|
//
|
||||||
|
Sprite::from_color(Color::srgb(1., 1., 1.), Vec2::new(100., 50.)),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user