mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 19:23:42 +00:00
fix(feedback): remove ball contact screen flash
This commit is contained in:
@@ -18,7 +18,6 @@ class_name HUDController
|
||||
@onready var result_panel = get_node_or_null("Control/ResultOverlay/Center/ResultPanel")
|
||||
@onready var result_label = get_node_or_null("Control/ResultOverlay/Center/ResultPanel/VBox/ResultLabel")
|
||||
@onready var final_score_label = get_node_or_null("Control/ResultOverlay/Center/ResultPanel/VBox/FinalScoreLabel")
|
||||
@onready var impact_flash = get_node_or_null("Control/ImpactFlash")
|
||||
@onready var goal_celebration = get_node_or_null("Control/GoalCelebration")
|
||||
@onready var goal_tint = get_node_or_null("Control/GoalCelebration/Tint")
|
||||
@onready var goal_title = get_node_or_null("Control/GoalCelebration/Center/GoalTitle")
|
||||
@@ -32,7 +31,6 @@ class_name HUDController
|
||||
|
||||
var ship: Node
|
||||
var _last_score := {0: 0, 1: 0}
|
||||
var _impact_flash_tween: Tween
|
||||
var _goal_tween: Tween
|
||||
|
||||
func _ready():
|
||||
@@ -177,18 +175,6 @@ func _flash_score_label(label: Label) -> void:
|
||||
tween.tween_property(label, "scale", Vector2(1.0, 1.0), 0.2)
|
||||
|
||||
|
||||
func flash_impact(intensity: float) -> void:
|
||||
if not impact_flash or not is_instance_valid(impact_flash):
|
||||
return
|
||||
if _impact_flash_tween and _impact_flash_tween.is_valid():
|
||||
_impact_flash_tween.kill()
|
||||
impact_flash.color = Color(0.72, 0.9, 1.0, lerpf(0.06, 0.24, intensity))
|
||||
impact_flash.visible = true
|
||||
_impact_flash_tween = create_tween()
|
||||
_impact_flash_tween.tween_property(impact_flash, "color:a", 0.0, lerpf(0.08, 0.18, intensity))
|
||||
_impact_flash_tween.tween_callback(func(): impact_flash.visible = false)
|
||||
|
||||
|
||||
func show_goal_celebration(scoring_team: int) -> void:
|
||||
if not goal_celebration or not goal_title or not goal_tint:
|
||||
return
|
||||
|
||||
@@ -164,8 +164,6 @@ func spawn_camera_rig(target: Ship) -> ShipCameraRig:
|
||||
|
||||
|
||||
func _on_player_impact(intensity: float) -> void:
|
||||
if hud:
|
||||
hud.flash_impact(intensity)
|
||||
if not _goal_slowmo_active:
|
||||
_run_hit_stop(intensity)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user