summaryrefslogtreecommitdiff
path: root/bumper_b.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'bumper_b.tscn')
-rw-r--r--bumper_b.tscn84
1 files changed, 84 insertions, 0 deletions
diff --git a/bumper_b.tscn b/bumper_b.tscn
new file mode 100644
index 0000000..fe9aff3
--- /dev/null
+++ b/bumper_b.tscn
@@ -0,0 +1,84 @@
+[gd_scene load_steps=8 format=3 uid="uid://c8vbuly76q4cr"]
+
+[ext_resource type="PackedScene" uid="uid://t27td5jbdv28" path="res://bumper.tscn" id="1_ft11y"]
+[ext_resource type="AudioStream" uid="uid://bwy4ji0hb47n" path="res://hit.ogg" id="2_8nwkk"]
+[ext_resource type="Texture2D" uid="uid://bmra2qpibkr2u" path="res://assets/placeholders/6266.png" id="3_apqca"]
+
+[sub_resource type="Animation" id="Animation_8nwkk"]
+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(8, 408, 24, 32)]
+}
+
+[sub_resource type="Animation" id="Animation_apqca"]
+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(8, 408, 24, 32)]
+}
+
+[sub_resource type="Animation" id="Animation_sgpq0"]
+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(66, 408, 24, 32)]
+}
+
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_sgpq0"]
+_data = {
+&"RESET": SubResource("Animation_apqca"),
+&"default": SubResource("Animation_8nwkk"),
+&"hit": SubResource("Animation_sgpq0")
+}
+
+[node name="Bumper-B" node_paths=PackedStringArray("hit_sound", "animation_player") instance=ExtResource("1_ft11y")]
+force = 5.0
+hit_sound = NodePath("Hit")
+animation_player = NodePath("AnimationPlayer")
+
+[node name="Hit" type="AudioStreamPlayer" parent="." index="0"]
+stream = ExtResource("2_8nwkk")
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"]
+libraries = {
+&"": SubResource("AnimationLibrary_sgpq0")
+}
+
+[node name="Sprite2D" type="Sprite2D" parent="." index="2"]
+texture = ExtResource("3_apqca")
+region_enabled = true
+region_rect = Rect2(8, 408, 24, 32)
+
+[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="3"]
+polygon = PackedVector2Array(-6, -10, -6, -8, -5, -6, -4, -4, 3, 9, 4, 9, 4, 8, -5, -10)
+
+[node name="StaticBody2D" type="StaticBody2D" parent="." index="4"]
+
+[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D" index="0"]
+polygon = PackedVector2Array(-6, -12, -8, -12, -7, 3, 2, 10, 5, 12, 5, 10, 3, 9, -6, -8)