added pipes and interact blocks

This commit is contained in:
Jonas Braus
2024-07-28 20:39:02 +02:00
parent 083c1b98ec
commit f9fdbb4612
11 changed files with 469 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
extends RigidBody2D
@onready var animated_sprite_2d = $AnimatedSprite2D
var destroyed = false
func _ready():
animated_sprite_2d.play("idle")#
func _on_activate_body_entered(body):
if destroyed:
return
destroyed = true
animated_sprite_2d.play("destroy")