1
0

final commit

This commit is contained in:
2026-07-26 18:54:03 +02:00
parent 4438d9d886
commit c818fba5e9
45 changed files with 1791 additions and 67 deletions
+230
View File
@@ -0,0 +1,230 @@
[gd_scene format=3 uid="uid://b8gstr4nrohwu"]
[ext_resource type="Script" uid="uid://b4mt2p1i8cdix" path="res://assets/scripts/walkingbomb.gd" id="1_us3df"]
[ext_resource type="Script" uid="uid://ca8an62xpl0e4" path="res://assets/scripts/disposableParticles.gd" id="2_2knv6"]
[ext_resource type="AudioStream" uid="uid://5b7eonllfufp" path="res://assets/sounds/hitHurt.wav" id="3_gecmd"]
[ext_resource type="AudioStream" uid="uid://cb4tk7lhsuwoj" path="res://assets/sounds/kaboom.wav" id="4_us3df"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xyegg"]
size = Vector2(30, 30)
[sub_resource type="Animation" id="Animation_kvq5h"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Polygon2D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Polygon2D:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.5707964]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Polygon2D:color")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.16083348, 0.050000012, 1, 1)]
}
[sub_resource type="Animation" id="Animation_ag6wx"]
resource_name = "flash"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = false
tracks/0/path = NodePath("Polygon2D:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.06666667, 0.16666667, 0.3),
"transitions": PackedFloat32Array(3.605001, 3.732124, 1),
"update": 0,
"values": [Color(0.6166668, 0, 1, 1), Color(1, 1, 1, 1), Color(0, 0, 0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Polygon2D:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.13333334, 0.5),
"transitions": PackedFloat32Array(4.1410594, 0.34151012, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(0.3, 0.3), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_kbpvo"]
resource_name = "shoot"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Polygon2D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.4),
"transitions": PackedFloat32Array(0.13869622, 2, 0.73204285),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.2, 0.5), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_fg8cn"]
resource_name = "spawn"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Polygon2D:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.33333334, 0.8),
"transitions": PackedFloat32Array(0.36602157, 1.0352651, 3.1383355),
"update": 0,
"values": [Vector2(0, 0), Vector2(1.25, 1.25), Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Polygon2D:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(1.8025008, 1),
"update": 0,
"values": [0.0, 1.5707963267948966]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55kjn"]
_data = {
&"RESET": SubResource("Animation_kvq5h"),
&"flash": SubResource("Animation_ag6wx"),
&"shoot": SubResource("Animation_kbpvo"),
&"spawn": SubResource("Animation_fg8cn")
}
[sub_resource type="Curve" id="Curve_xyegg"]
_data = [Vector2(0.66548043, 0.9809523), 0.0, 0.0, 0, 0, Vector2(1, 0.009523869), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Gradient" id="Gradient_pymst"]
offsets = PackedFloat32Array(0, 0.69411767, 0.69803923, 0.8745098, 1)
colors = PackedColorArray(1, 1, 1, 1, 0.48555556, 0.48555556, 0.48555556, 1, 0.46, 0.46, 0.46, 1, 0.51, 0.51, 0.51, 1, 1, 1, 1, 0)
[sub_resource type="Curve" id="Curve_8sg6u"]
_data = [Vector2(0.24590164, 0.9788519), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[node name="Enemy" type="CharacterBody2D" unique_id=1421049985]
collision_layer = 16
collision_mask = 16
script = ExtResource("1_us3df")
metadata/enemy = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1723115153]
visible = false
shape = SubResource("RectangleShape2D_xyegg")
[node name="Polygon2D" type="Polygon2D" parent="." unique_id=274914633]
rotation = 1.5707964
color = Color(0.16083348, 0.050000012, 1, 1)
polygon = PackedVector2Array(-8.999999, 19, -8.999999, 19, -27, 1.1802075e-06, -9.000001, -21, 14.999999, -15.000001, 15.000001, 14.999999)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1072188506]
libraries/ = SubResource("AnimationLibrary_55kjn")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1305506168]
[node name="Timer" type="Timer" parent="." unique_id=437715343]
wait_time = 0.1
autostart = true
[node name="RayCast2D" type="RayCast2D" parent="." unique_id=957428599]
target_position = Vector2(400, 0)
collision_mask = 512
[node name="explode" type="CPUParticles2D" parent="." unique_id=1638487851]
z_index = -3
emitting = false
amount = 20
lifetime = 10.0
one_shot = true
explosiveness = 1.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 20.0
initial_velocity_max = 50.0
linear_accel_min = -25.0
linear_accel_max = -25.0
scale_amount_min = 8.0
scale_amount_max = 16.0
scale_amount_curve = SubResource("Curve_xyegg")
color = Color(0, 0.3083334, 0.74, 1)
color_ramp = SubResource("Gradient_pymst")
script = ExtResource("2_2knv6")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1205892242]
offset_left = -15.0
offset_top = -27.0
offset_right = 15.0
offset_bottom = -24.0
color = Color(1, 1, 1, 0.2509804)
[node name="health" type="ColorRect" parent="." unique_id=1962272317]
offset_left = -15.0
offset_top = -27.0
offset_right = 15.0
offset_bottom = -24.0
color = Color(0.8124417, 0, 0.111754455, 1)
[node name="hitsfx" type="AudioStreamPlayer2D" parent="." unique_id=2128530763]
stream = ExtResource("3_gecmd")
[node name="shootsfx" type="AudioStreamPlayer2D" parent="." unique_id=408136521]
stream = ExtResource("4_us3df")
volume_db = -10.0
[node name="snappie" type="Timer" parent="." unique_id=807725500]
wait_time = 0.05
autostart = true
ignore_time_scale = true
[node name="CPUParticles2D" type="CPUParticles2D" parent="." unique_id=1945075138]
amount = 30
emission_shape = 1
emission_sphere_radius = 32.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 20.0
initial_velocity_max = 50.0
scale_amount_min = 2.0
scale_amount_max = 2.0
scale_amount_curve = SubResource("Curve_8sg6u")
color = Color(1, 0.92, 0.19999999, 1)
[connection signal="timeout" from="Timer" to="." method="_on_new_path"]
[connection signal="timeout" from="snappie" to="." method="_on_snappie_timeout"]