4.6, new attack, enemy spawning, shaders, bunch of stuff
This commit is contained in:
parent
e08e3ebb13
commit
19517a3176
84 changed files with 13348 additions and 91399 deletions
|
|
@ -1,10 +1,11 @@
|
|||
extends Node2D
|
||||
|
||||
@export var range : int = 50
|
||||
@export var show_range : int = 50
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if has_node("%Player"):
|
||||
if %Player.global_position.distance_to(global_position) < range:
|
||||
var player = get_tree().get_first_node_in_group("player")
|
||||
if player:
|
||||
if player.global_position.distance_to(global_position) < show_range:
|
||||
show_ins()
|
||||
else:
|
||||
hide_ins()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue