added corpses and a wall building dissolve animation

This commit is contained in:
2023-12-10 12:05:41 +11:00
parent adde9f5c3c
commit 046c4f5afb
39 changed files with 596 additions and 112 deletions

16
corpse.gd Normal file
View File

@@ -0,0 +1,16 @@
extends RigidBody3D
func set_sprite(tex: Texture):
$Sprite3D.texture = tex
func _ready() -> void:
var tween = create_tween()
tween.tween_interval(15.0)
tween.tween_property($Sprite3D, "modulate", Color(1.0, 1.0, 1.0, 0.0), 4.0)
tween.tween_callback(queue_free)
func _on_body_entered(body: Node) -> void:
freeze = true