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