diff options
Diffstat (limited to 'bumper_a.tscn')
-rw-r--r-- | bumper_a.tscn | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/bumper_a.tscn b/bumper_a.tscn new file mode 100644 index 0000000..153fb11 --- /dev/null +++ b/bumper_a.tscn @@ -0,0 +1,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") |