settings, small fixes
This commit is contained in:
parent
b12c193636
commit
e08e3ebb13
174 changed files with 997 additions and 1040 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue