added more sound

This commit is contained in:
Jonas Braus
2024-07-29 19:18:27 +02:00
parent b339ef3c29
commit ea21b49716
6 changed files with 174 additions and 10 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
extends RigidBody2D
@onready var animated_sprite_2d = $AnimatedSprite2D
@onready var animation_player = $AnimationPlayer
func _ready():
animated_sprite_2d.play("default")
func _on_activate_body_entered(body):
if body.is_big:
queue_free()
animation_player.play("destroy")