pretty happy with hud minimap
This commit is contained in:
@@ -31,7 +31,7 @@ func _process(delta: float) -> void:
|
||||
if target_enemy != null:
|
||||
update_minimap()
|
||||
if timer > 0:
|
||||
timer -= delta
|
||||
timer -= delta * Engine.time_scale
|
||||
update_timer("kill target")
|
||||
else:
|
||||
level_control.last_hit = target_enemy
|
||||
@@ -41,7 +41,7 @@ func _process(delta: float) -> void:
|
||||
select_random_enemy()
|
||||
|
||||
func update_minimap():
|
||||
SignalBus.emit_signal("ui_minimap_point",self,ui_marker.global_position,ColorSwatch.GREEN_COLOR)
|
||||
SignalBus.emit_signal("ui_minimap_point",self,ui_marker.global_position,3,5.0,ColorSwatch.GREEN_COLOR)
|
||||
|
||||
func update_timer(label):
|
||||
var rounded_timer = str(timer).pad_decimals(2)
|
||||
@@ -59,7 +59,7 @@ func add_marker_to_enemy():
|
||||
if target_enemy != null:
|
||||
var instance_marker = marker.instantiate()
|
||||
target_enemy.add_child(instance_marker)
|
||||
instance_marker.global_position = target_enemy.global_position
|
||||
instance_marker.global_position = target_enemy.global_position + Vector3(0,3,0)
|
||||
ui_marker = instance_marker
|
||||
|
||||
func select_random_enemy():
|
||||
|
||||
Reference in New Issue
Block a user