scrump sounds and more work on stg2600
This commit is contained in:
parent
ba12787fcb
commit
8b831ea616
38 changed files with 804 additions and 153 deletions
14
objects/environment/collapse_block/collapse_block.gd
Normal file
14
objects/environment/collapse_block/collapse_block.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends RigidBody2D
|
||||
|
||||
onready var start_position = Vector2(position.x,position.y)
|
||||
onready var sound = $AudioStreamPlayer
|
||||
|
||||
func _ready():
|
||||
for node in get_tree().get_nodes_in_group("delete_on_collapse"):
|
||||
node.queue_free()
|
||||
|
||||
func _on_AnimationPlayer_animation_finished(anim_name):
|
||||
queue_free()
|
||||
|
||||
func _on_Timer_timeout():
|
||||
$AnimationPlayer.play("die")
|
Loading…
Add table
Add a link
Reference in a new issue