4.6, new attack, enemy spawning, shaders, bunch of stuff

This commit is contained in:
Daniel Kauss Serna 2026-02-17 01:24:05 +01:00
parent e08e3ebb13
commit 19517a3176
84 changed files with 13348 additions and 91399 deletions

View file

@ -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()