-
Notifications
You must be signed in to change notification settings - Fork 0
/
block.tscn
65 lines (55 loc) · 1.77 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[gd_scene load_steps=8 format=2]
[ext_resource path="res://sprites/blue.png" type="Texture" id=1]
[ext_resource path="res://block.gd" type="Script" id=2]
[ext_resource path="res://sprites/destroy_clap.png" type="Texture" id=3]
[ext_resource path="res://sound/Jump 1.wav" type="AudioStream" id=4]
[ext_resource path="res://sound/Hit damage 1.wav" type="AudioStream" id=5]
[sub_resource type="Animation" id=1]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0 ]
}
[sub_resource type="Animation" id=2]
resource_name = "destroy"
length = 0.35
step = 0.087
tracks/0/type = "value"
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.087, 0.174, 0.261, 0.348 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 3 ]
}
[node name="block" type="Node2D"]
script = ExtResource( 2 )
[node name="sprite" type="Sprite" parent="."]
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 1 )
[node name="swap_sound" type="AudioStreamPlayer2D" parent="sprite"]
stream = ExtResource( 5 )
[node name="move_tween" type="Tween" parent="."]
[node name="destroy" type="Sprite" parent="."]
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 3 )
hframes = 4
[node name="AnimationPlayer" type="AnimationPlayer" parent="destroy"]
anims/RESET = SubResource( 1 )
anims/destroy = SubResource( 2 )
[node name="destroy_sound" type="AudioStreamPlayer2D" parent="destroy"]
stream = ExtResource( 4 )
pitch_scale = 0.52
attenuation = 0.517633