add groups for nodes and clean up old code
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user