From 30603a9602b4b7cdb6958e01b9abb21a4222fbb9 Mon Sep 17 00:00:00 2001 From: Suna AI Agent Date: Sun, 19 Oct 2025 14:24:12 +0000 Subject: [PATCH] Add charging bow visualization for long touch - Created new charging_bow module - Implemented draw_charging_bow system - Shows expanding arc behind Earth as touch is held - Arc grows from 8.0 to 14.0 radius over 1 second - Color transitions from orange to yellow as it charges - Pulsing energy particles at bow tips when fully charged - Visual feedback for launch force magnitude - Helps mobile users understand charge mechanic - Integrated into effects plugin system --- src/effects/charging_bow.rs | 80 +++++++++++++++++++++++++++++++++++++ src/effects/mod.rs | 12 ++++-- 2 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 src/effects/charging_bow.rs diff --git a/src/effects/charging_bow.rs b/src/effects/charging_bow.rs new file mode 100644 index 0000000..2a886ae --- /dev/null +++ b/src/effects/charging_bow.rs @@ -0,0 +1,80 @@ +use bevy::prelude::*; +use crate::GameplaySystem; +use crate::launching::{LaunchArmed, LaunchPad, LaunchState}; + +pub fn plugin(app: &mut App) { + app.add_systems(Update, draw_charging_bow.in_set(GameplaySystem)); +} + +fn draw_charging_bow( + mut gizmos: Gizmos, + launch_armed: Res, + launch_state: Res, + launch_pad_query: Query<&Transform, With>, + time: Res