Проектная работа - WIP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use bevy::prelude::*;
|
||||
use snake_game::{head_rotation, moving, setup_frame_rate, startup};
|
||||
use snake_game::{head_rotation, moving, startup};
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
@@ -16,11 +16,11 @@ fn main() {
|
||||
task_pool_options: TaskPoolOptions::with_num_threads(1),
|
||||
}),
|
||||
)
|
||||
.insert_resource(bevy::winit::WinitSettings::desktop_app())
|
||||
.insert_resource(ClearColor(Color::srgb(0.3, 0.6, 0.8)))
|
||||
.add_systems(Startup, (startup, setup_frame_rate))
|
||||
.add_systems(Startup, (startup,))
|
||||
// .add_systems(PostStartup, snake_game::debug::print_all_entities)
|
||||
.add_systems(Update, (head_rotation, moving))
|
||||
.add_systems(Update, (head_rotation,))
|
||||
.add_systems(FixedUpdate, (moving,))
|
||||
// .add_systems(
|
||||
// PostUpdate,
|
||||
// snake_game::debug::print_all_entities_by_press_enter,
|
||||
|
||||
Reference in New Issue
Block a user