add piece locking sound
This commit is contained in:
parent
ddd705f661
commit
3e881d2868
2 changed files with 43 additions and 10 deletions
|
@ -1,7 +1,9 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://src/Taquin.gd" type="Script" id=1]
|
||||
[ext_resource path="res://src/Piece.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://assets/sounds/lock_01.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://assets/taqin_theme.tres" type="Theme" id=4]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "MovingPiece"
|
||||
|
@ -45,6 +47,7 @@ color_ramp = SubResource( 3 )
|
|||
|
||||
[node name="Taquin" type="Control"]
|
||||
rect_min_size = Vector2( 540, 540 )
|
||||
theme = ExtResource( 4 )
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
@ -63,7 +66,7 @@ anims/MovingPiece = SubResource( 1 )
|
|||
|
||||
[node name="MockPiece" parent="AnimationPlayer" instance=ExtResource( 2 )]
|
||||
visible = false
|
||||
position = Vector2( 175, 15 )
|
||||
position = Vector2( 15, 15 )
|
||||
size = 160
|
||||
|
||||
[node name="PlaceholderTexture" type="ColorRect" parent="AnimationPlayer/MockPiece"]
|
||||
|
@ -86,4 +89,8 @@ process_material = SubResource( 4 )
|
|||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 3 )
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue