Skip to content

Commit

Permalink
Update dependencies in Cargo.lock and refactor system calls in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zel9278 committed Jan 22, 2024
1 parent 939b2b8 commit 0f2252f
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 23 deletions.
81 changes: 62 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ fn main(){
..default()
}), FrameTimeDiagnosticsPlugin))
.add_systems(Startup, setup)
.add_systems(Update, cube_rotator_system)
.add_systems(Update, text_update_system)
.add_systems(Update, screenshot_on_spacebar)
.add_systems(Update, (
cube_rotator_system,
text_update_system,
screenshot_on_spacebar
))
.run();
}

Expand Down Expand Up @@ -65,7 +67,7 @@ fn setup(
asset_server: ResMut<AssetServer>,
) {
fs::create_dir_all("./ss").unwrap();

commands.spawn((
TextBundle::from_sections([
TextSection::new(
Expand Down

0 comments on commit 0f2252f

Please sign in to comment.