From 8d091fec47d82fecba37d5a9858ece323ab60d53 Mon Sep 17 00:00:00 2001 From: hheik <4469778+hheik@users.noreply.github.com> Date: Fri, 22 Aug 2025 00:31:13 +0300 Subject: [PATCH] Adjusted movement responsiveness and cleaned comments --- src/game/systems/game_scene.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/game/systems/game_scene.rs b/src/game/systems/game_scene.rs index 0530c0f..afb6005 100644 --- a/src/game/systems/game_scene.rs +++ b/src/game/systems/game_scene.rs @@ -137,8 +137,8 @@ pub fn apply_piece_movement( *input_repeat = Some(InputRepeatState { input_type: movement, cumulated_time: 0.0, - next_interval: 0.1, - interval_reduction: 0.5, + next_interval: 0.2, + interval_reduction: 0.0, min_interval: 0.03, }); move_piece = true; @@ -159,12 +159,7 @@ pub fn apply_piece_movement( pub fn handle_placed_piece(trigger: Trigger, world: &mut World) { let game_area = trigger.target(); let event = *trigger.event(); - // for game_area in world - // .run_system_cached(place_blocks) - // .iter() - // .flatten() - // .cloned() - // { + world .run_system_cached_with(place_blocks, (event, game_area)) .expect("Placing piece"); @@ -180,9 +175,6 @@ pub fn handle_placed_piece(trigger: Trigger, world: &mut World) { }, game_area, ); - // world - // .run_system_cached_with(clear_rows, cleared_rows) - // .expect("Clearing full rows"); world.flush(); } @@ -194,7 +186,6 @@ pub fn handle_placed_piece(trigger: Trigger, world: &mut World) { .run_system_cached_with(create_next_piece, game_area) .expect("Creating new piece"); world.flush(); - // } // TODO: Finish up clearing the piece / lines // TODO: Lose condition