fixed bomb launcher range and rocket launcher selection bugs
This commit is contained in:
PCs
Scripts
Worlds
@ -6,10 +6,13 @@ var path_progress = 0.0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
distance_remaining = path.get_baked_length()
|
||||
if path:
|
||||
distance_remaining = path.get_baked_length()
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if !path:
|
||||
return
|
||||
var distance_travelled = (character.stats.movement_speed * clampf(character.movement_speed_penalty, 0.0, 1.0)) * delta
|
||||
distance_remaining -= distance_travelled
|
||||
path_progress += distance_travelled
|
||||
|
@ -4,7 +4,6 @@ class_name HUD
|
||||
var last_lives_count = 120
|
||||
@export var wave_count : Label
|
||||
@export var lives_count : Label
|
||||
@export var enemy_count : Label
|
||||
@export var currency_count : Label
|
||||
@export var crosshair : Control
|
||||
@export var minimap : TextureRect
|
||||
@ -52,10 +51,6 @@ func set_lives_count(value):
|
||||
last_lives_count = value
|
||||
|
||||
|
||||
func set_enemy_count(value):
|
||||
enemy_count.text = "Enemies Remaining: " + str(value)
|
||||
|
||||
|
||||
func enemy_count_down(enemy):
|
||||
var index = enemy_names.find(enemy.title)
|
||||
var num = enemy_counts[index].text.to_int() - 1
|
||||
|
@ -6,9 +6,3 @@ func _on_health_health_depleted() -> void:
|
||||
$Dog/Health.current_health = stats.health
|
||||
$Dog/SubViewport/ProgressBar.max_value = stats.health
|
||||
$Dog/SubViewport/ProgressBar.value = stats.health
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
progress += movement_speed * delta
|
||||
if progress_ratio >= 1:
|
||||
progress_ratio = 0
|
||||
|
Reference in New Issue
Block a user