man it took me so long to find out that Rust has a `ref` keyword lol
This commit is contained in:
parent
214e0ceedc
commit
245dfde91e
2 changed files with 25 additions and 3 deletions
|
@ -5,7 +5,7 @@ use clap::Parser;
|
|||
|
||||
mod game;
|
||||
use game::{
|
||||
runtime::{move_camera, move_player, quit},
|
||||
runtime::{move_camera, move_player, quit, zoom_camera},
|
||||
seed::Seed,
|
||||
setup::{setup_balls, setup_player, setup_pseudo_random, setup_ui, setup_walls},
|
||||
};
|
||||
|
@ -44,7 +44,11 @@ impl Plugin for AppSettings {
|
|||
)
|
||||
.add_systems(
|
||||
Update,
|
||||
(move_player, quit.run_if(input_pressed(KeyCode::KeyQ))),
|
||||
(
|
||||
move_player,
|
||||
quit.run_if(input_pressed(KeyCode::KeyQ)),
|
||||
zoom_camera,
|
||||
),
|
||||
)
|
||||
.add_systems(PostUpdate, move_camera);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue