settings, small fixes

This commit is contained in:
Daniel Kauss Serna 2026-02-15 16:17:51 +01:00
parent b12c193636
commit e08e3ebb13
174 changed files with 997 additions and 1040 deletions

View file

@ -1,6 +1,6 @@
extends Node2D
@onready var player : Player = get_tree().get_first_node_in_group("player")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
@ -8,8 +8,6 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
var player = get_tree().get_first_node_in_group("player")
if player:
if player.global_position.distance_to(global_position) > 600:
player.hit()
pass
player.damage()