add groups for nodes and clean up old code

This commit is contained in:
2024-07-02 13:57:46 +02:00
parent cb235310f1
commit f87abc0631
7 changed files with 72 additions and 74 deletions

View File

@@ -16,23 +16,16 @@ const MOVEMENT_VECTORS = [
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
func _physics_process(_delta):
var movement = MOVEMENT_VECTORS[randi() % 4]
move_and_collide(movement * 2)
pass
func _on_Hitbox_area_entered(area):
pass # Replace with function body.
func _on_Hurtbox_area_entered(area):
func _on_Hurtbox_area_entered(_area):
$Hurtbox/death.play()
pass # Replace with function body.
func _on_death_finished():
queue_free()
pass # Replace with function body.