-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlock.tscn
50 lines (38 loc) · 1.65 KB
/
Block.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[gd_scene load_steps=9 format=2]
[ext_resource path="res://block_sprite.tscn" type="PackedScene" id=1]
[ext_resource path="res://Block.gd" type="Script" id=2]
[ext_resource path="res://assets/sounds/chess.wav" type="AudioStream" id=4]
[ext_resource path="res://assets/sounds/chopping.wav" type="AudioStream" id=5]
[ext_resource path="res://assets/sounds/blender.wav" type="AudioStream" id=6]
[ext_resource path="res://assets/sounds/bake.wav" type="AudioStream" id=7]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 100.93, 99.8932 )
[sub_resource type="Animation" id=2]
resource_name = "flash"
[node name="Block" type="Area2D"]
z_index = 1
collision_mask = 2
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1.5874, 11.1118 )
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/flash = SubResource( 2 )
[node name="chess" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[node name="chess2" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
pitch_scale = 1.11
[node name="blend" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
pitch_scale = 1.11
[node name="chop" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
pitch_scale = 1.11
[node name="bake" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
pitch_scale = 1.11
[node name="Sprite" parent="." instance=ExtResource( 1 )]
[connection signal="area_entered" from="." to="." method="snap"]
[connection signal="area_exited" from="." to="." method="unsnap"]
[connection signal="input_event" from="." to="." method="_on_Block_input_event"]