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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
[gd_scene load_steps=9 format=3 uid="uid://bfv0i5cqbhysy"]
[ext_resource type="PackedScene" uid="uid://t27td5jbdv28" path="res://bumper.tscn" id="1_q5peq"]
[ext_resource type="AudioStream" uid="uid://bwy4ji0hb47n" path="res://hit.ogg" id="2_uandx"]
[ext_resource type="Texture2D" uid="uid://bmra2qpibkr2u" path="res://assets/placeholders/6266.png" id="3_k7wrx"]
[sub_resource type="Animation" id="Animation_uandx"]
resource_name = "default"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(200, 666, 16, 16)]
}
[sub_resource type="Animation" id="Animation_k7wrx"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(200, 666, 16, 16)]
}
[sub_resource type="Animation" id="Animation_7sf2s"]
resource_name = "hit"
length = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Rect2(218, 666, 16, 16)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7sf2s"]
_data = {
&"RESET": SubResource("Animation_k7wrx"),
&"default": SubResource("Animation_uandx"),
&"hit": SubResource("Animation_7sf2s")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_uandx"]
radius = 6.0
[node name="Bumper-a" node_paths=PackedStringArray("hit_sound", "animation_player") instance=ExtResource("1_q5peq")]
force = 6.0
hit_sound = NodePath("Hit")
animation_player = NodePath("AnimationPlayer")
[node name="Hit" type="AudioStreamPlayer" parent="." index="0"]
stream = ExtResource("2_uandx")
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"]
libraries = {
&"": SubResource("AnimationLibrary_7sf2s")
}
[node name="Sprite2D" type="Sprite2D" parent="." index="2"]
texture = ExtResource("3_k7wrx")
region_enabled = true
region_rect = Rect2(200, 666, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
shape = SubResource("CircleShape2D_uandx")
|