1
0

initial commit

This commit is contained in:
2026-07-26 01:01:08 +02:00
commit 787cefefd5
86 changed files with 3195 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
[gd_scene format=3 uid="uid://d1ta1nxbedqad"]
[ext_resource type="Script" uid="uid://ca8an62xpl0e4" path="res://assets/scripts/disposableParticles.gd" id="1_16fqk"]
[sub_resource type="Curve" id="Curve_xyegg"]
_data = [Vector2(0.49822062, 0.99999994), 0.0, 0.0, 0, 0, Vector2(0.99644125, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="Gradient" id="Gradient_pymst"]
offsets = PackedFloat32Array(0, 0.68235296, 0.9882353)
colors = PackedColorArray(1, 1, 1, 1, 0.6, 0.6, 0.6, 1, 1, 1, 1, 0)
[node name="Blood" type="CPUParticles2D" unique_id=1387158673]
z_index = -1
emitting = false
amount = 10
lifetime = 5.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 = -50.0
linear_accel_max = -20.0
angle_min = -180.0
angle_max = 180.0
scale_amount_min = 4.0
scale_amount_max = 6.0
scale_amount_curve = SubResource("Curve_xyegg")
color = Color(0.89, 0, 0, 1)
color_ramp = SubResource("Gradient_pymst")
script = ExtResource("1_16fqk")
+56
View File
@@ -0,0 +1,56 @@
[gd_scene format=3 uid="uid://crv0gs7xtegi4"]
[ext_resource type="Script" uid="uid://iwxi6s8i6j81" path="res://assets/scripts/enemy.gd" id="1_5q6ol"]
[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)]
}
[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(0.5, 1.2), Vector2(1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_55kjn"]
_data = {
&"RESET": SubResource("Animation_kvq5h"),
&"shoot": SubResource("Animation_kbpvo")
}
[node name="Enemy" type="CharacterBody2D" unique_id=1421049985]
script = ExtResource("1_5q6ol")
[node name="Polygon2D" type="Polygon2D" parent="." unique_id=274914633]
position = Vector2(-13, 0)
rotation = 1.5707964
color = Color(0, 0.3333335, 1, 1)
polygon = PackedVector2Array(-15, 0, 15, 0, 0, -30)
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." unique_id=1346650607]
visible = false
polygon = PackedVector2Array(-16, 15, -16, -15, 14, 0)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1072188506]
libraries/ = SubResource("AnimationLibrary_55kjn")
+30
View File
@@ -0,0 +1,30 @@
[gd_scene format=3 uid="uid://etjisg8welsn"]
[ext_resource type="Script" uid="uid://bemc80xgvtkd4" path="res://assets/scripts/enemy_bullet.gd" id="1_ptxui"]
[sub_resource type="SphereMesh" id="SphereMesh_xyegg"]
radius = 5.0
height = 10.0
[sub_resource type="CircleShape2D" id="CircleShape2D_c3msa"]
radius = 5.0
[node name="EnemyBullet" type="CharacterBody2D" unique_id=822797430]
z_index = 1
collision_layer = 2
collision_mask = 2
script = ExtResource("1_ptxui")
[node name="MeshInstance2D" type="MeshInstance2D" parent="." unique_id=903508644]
modulate = Color(0.6156863, 0, 1, 1)
mesh = SubResource("SphereMesh_xyegg")
[node name="hitme" type="Area2D" parent="." unique_id=194049910]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitme" unique_id=711740605]
shape = SubResource("CircleShape2D_c3msa")
[connection signal="area_entered" from="hitme" to="." method="_on_area_entered"]
[connection signal="body_entered" from="hitme" to="." method="_on_body_entered"]
+9
View File
@@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://bjrqlhik55h8o"]
[ext_resource type="AudioStream" uid="uid://b7gupw3d7sfho" path="res://assets/sounds/explosion.wav" id="1_7lrd8"]
[ext_resource type="Script" uid="uid://ctjyxuafayafk" path="res://assets/scripts/explosionsfx.gd" id="2_458cp"]
[node name="ExplosionSFX" type="AudioStreamPlayer2D" unique_id=427221510]
stream = ExtResource("1_7lrd8")
autoplay = true
script = ExtResource("2_458cp")
+39
View File
@@ -0,0 +1,39 @@
[gd_scene format=3 uid="uid://dfwhpkgf77e5y"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xyegg"]
size = Vector2(30, 30)
[sub_resource type="BoxMesh" id="BoxMesh_xyegg"]
size = Vector3(24, 24, 1)
[sub_resource type="Curve" id="Curve_xyegg"]
_data = [Vector2(0.41992885, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.038095236), 0.0, 0.0, 0, 0]
point_count = 2
[node name="Pickupable" type="Area2D" unique_id=448556835]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2069397373]
shape = SubResource("RectangleShape2D_xyegg")
[node name="mainmesh" type="MeshInstance2D" parent="." unique_id=1578928066]
modulate = Color(4.415934, 4.415934, 4.415934, 1)
mesh = SubResource("BoxMesh_xyegg")
[node name="particles" type="CPUParticles2D" parent="." unique_id=871258801]
z_index = -1
emitting = false
amount = 30
lifetime = 10.0
one_shot = true
explosiveness = 1.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 50.0
initial_velocity_max = 100.0
linear_accel_min = -100.0
linear_accel_max = -100.0
scale_amount_min = 3.0
scale_amount_max = 6.0
scale_amount_curve = SubResource("Curve_xyegg")
+22
View File
@@ -0,0 +1,22 @@
[gd_scene format=3 uid="uid://bqla58648mj8x"]
[ext_resource type="PackedScene" uid="uid://dfwhpkgf77e5y" path="res://assets/scenes/pickupable.tscn" id="1_paivl"]
[ext_resource type="Texture2D" uid="uid://ds15hhsmjp3wc" path="res://assets/images/collectables/stopwatch.png" id="2_g8182"]
[ext_resource type="Texture2D" uid="uid://desgj7lpexej7" path="res://assets/images/collectables/stopwatch.svg" id="3_fb1sx"]
[node name="Pickupable" unique_id=448556835 instance=ExtResource("1_paivl")]
metadata/pickup = 1
[node name="mainmesh" parent="." index="1" unique_id=1578928066]
modulate = Color(0.53800005, 1, 0.16000003, 1)
[node name="Stopwatch" type="Sprite2D" parent="." index="2" unique_id=1633947504]
visible = false
texture = ExtResource("2_g8182")
[node name="particles" parent="." index="3" unique_id=871258801]
color = Color(0.5372549, 1, 0.16078432, 1)
[node name="Stopwatch2" type="Sprite2D" parent="." index="4" unique_id=2549464]
scale = Vector2(0.75, 0.75)
texture = ExtResource("3_fb1sx")
+175
View File
@@ -0,0 +1,175 @@
[gd_scene format=3 uid="uid://bwlwbahelcq52"]
[ext_resource type="Script" uid="uid://dbofvk7fso8po" path="res://assets/scripts/player.gd" id="1_rwm0n"]
[ext_resource type="Texture2D" uid="uid://cs35h4es4e6p" path="res://assets/images/gun1.png" id="2_s027a"]
[ext_resource type="Texture2D" uid="uid://c3o7a2w3qyl4o" path="res://assets/images/tile.png" id="3_14505"]
[ext_resource type="AudioStream" uid="uid://de4sr2qpjr1w2" path="res://assets/sounds/shoot.wav" id="4_4wcc8"]
[ext_resource type="AudioStream" uid="uid://5b7eonllfufp" path="res://assets/sounds/hitHurt.wav" id="5_8sknh"]
[ext_resource type="Script" uid="uid://ca8an62xpl0e4" path="res://assets/scripts/disposableParticles.gd" id="6_0gfpk"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_0gfpk"]
light_mode = 1
[sub_resource type="BoxMesh" id="BoxMesh_xyegg"]
size = Vector3(31, 31, 1)
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_14505"]
light_mode = 1
[sub_resource type="Animation" id="Animation_s027a"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun: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)]
}
[sub_resource type="Animation" id="Animation_14505"]
resource_name = "shoot"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.4),
"transitions": PackedFloat32Array(0.13869628, 2.0000021, 0.7320437),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.2, 0.5), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_4wcc8"]
resource_name = "shoot_flip"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("gun:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.4),
"transitions": PackedFloat32Array(0.13869628, 2.0000021, 0.7320437),
"update": 0,
"values": [Vector2(1, -1), Vector2(1.2, -0.5), Vector2(1, -1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4wcc8"]
_data = {
&"RESET": SubResource("Animation_s027a"),
&"shoot": SubResource("Animation_14505"),
&"shoot_flip": SubResource("Animation_4wcc8")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xyegg"]
size = Vector2(31, 31)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pymst"]
size = Vector2(24, 24)
[sub_resource type="Curve" id="Curve_14505"]
_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_4wcc8"]
offsets = PackedFloat32Array(0.8745098, 1)
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
[node name="Player" type="CharacterBody2D" unique_id=1190467346]
script = ExtResource("1_rwm0n")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1343075480]
visible = false
offset_left = -16.0
offset_top = -16.0
offset_right = 15.0
offset_bottom = 15.0
color = Color(1, 0, 0, 1)
[node name="Polygon2D" type="Polygon2D" parent="." unique_id=982630085]
material = SubResource("CanvasItemMaterial_0gfpk")
position = Vector2(-0.5, -0.5)
color = Color(1, 0, 0, 1)
polygon = PackedVector2Array(-15, -15, 16, -15, 16, 16, -15, 16)
[node name="MeshInstance2D" type="MeshInstance2D" parent="." unique_id=1817854395]
modulate = Color(0, 0, 0, 0.2509804)
mesh = SubResource("BoxMesh_xyegg")
[node name="Camera2D" type="Camera2D" parent="." unique_id=641690279]
position_smoothing_enabled = true
[node name="gun" type="Node2D" parent="." unique_id=1991256638]
[node name="sprite" type="Sprite2D" parent="gun" unique_id=404962107]
material = SubResource("CanvasItemMaterial_14505")
scale = Vector2(2, 2)
texture = ExtResource("2_s027a")
region_enabled = true
region_rect = Rect2(0, 112, 16, 16)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=993544515]
libraries/ = SubResource("AnimationLibrary_4wcc8")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=266552910]
visible = false
shape = SubResource("RectangleShape2D_xyegg")
[node name="hitbox" type="Area2D" parent="." unique_id=1769955622 groups=["playerHitbox"]]
visible = false
collision_layer = 2
collision_mask = 2
metadata/playerHitbox = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox" unique_id=929455950]
shape = SubResource("RectangleShape2D_pymst")
debug_color = Color(0.37601954, 0.6145431, 0, 0.41960785)
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=1388686543]
scale = Vector2(50, 50)
shadow_enabled = true
shadow_color = Color(0, 0, 0, 1)
texture = ExtResource("3_14505")
[node name="Timer" type="Timer" parent="." unique_id=1120887048]
wait_time = 0.05
autostart = true
ignore_time_scale = true
[node name="explode" type="CPUParticles2D" parent="." unique_id=1217002006]
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_14505")
color = Color(1, 0, 0, 1)
color_ramp = SubResource("Gradient_4wcc8")
script = ExtResource("6_0gfpk")
[node name="shootsfx" type="AudioStreamPlayer2D" parent="." unique_id=853884099]
stream = ExtResource("4_4wcc8")
[node name="hitsfx" type="AudioStreamPlayer2D" parent="." unique_id=640571283]
stream = ExtResource("5_8sknh")
[connection signal="area_entered" from="hitbox" to="." method="_on_hitbox_area_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_framesave_timeout"]
+16
View File
@@ -0,0 +1,16 @@
[gd_scene format=3 uid="uid://7d67o6b6fcut"]
[ext_resource type="PackedScene" uid="uid://etjisg8welsn" path="res://assets/scenes/enemyBullet.tscn" id="1_3t5k8"]
[ext_resource type="Script" uid="uid://dnxmn06yejksk" path="res://assets/scripts/player_bullet.gd" id="2_qweep"]
[node name="EnemyBullet" unique_id=822797430 instance=ExtResource("1_3t5k8")]
z_index = 1
script = ExtResource("2_qweep")
[node name="MeshInstance2D" parent="." index="0" unique_id=903508644]
modulate = Color(1, 0, 0, 1)
[node name="hitme" parent="." index="1" unique_id=194049910]
z_index = 1
collision_layer = 16
collision_mask = 16
+213
View File
@@ -0,0 +1,213 @@
[gd_scene format=3 uid="uid://bjptrvvfk00r"]
[ext_resource type="Script" uid="uid://iwxi6s8i6j81" path="res://assets/scripts/enemy.gd" id="1_kvq5h"]
[ext_resource type="Script" uid="uid://ca8an62xpl0e4" path="res://assets/scripts/disposableParticles.gd" id="2_7yqym"]
[ext_resource type="AudioStream" uid="uid://5b7eonllfufp" path="res://assets/sounds/hitHurt.wav" id="2_ag6wx"]
[ext_resource type="AudioStream" uid="uid://d3ok8rhcq4kmr" path="res://assets/sounds/shootEnemy.wav" id="3_yw082"]
[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.6166668, 0, 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.6156863, 0, 1, 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)
[node name="Enemy" type="CharacterBody2D" unique_id=1421049985]
collision_layer = 16
collision_mask = 16
script = ExtResource("1_kvq5h")
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.6166668, 0, 1, 1)
polygon = PackedVector2Array(-14.999999, 15.000001, -14.999999, 15.000001, -15.000001, -14.999999, 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.45342964, 0.0022321118, 0.7445152, 1)
color_ramp = SubResource("Gradient_pymst")
script = ExtResource("2_7yqym")
[node name="ColorRect" type="ColorRect" parent="." unique_id=1205892242]
offset_left = -15.0
offset_top = -21.0
offset_right = 15.0
offset_bottom = -18.0
color = Color(1, 1, 1, 0.2509804)
[node name="health" type="ColorRect" parent="." unique_id=1962272317]
offset_left = -15.0
offset_top = -21.0
offset_right = 15.0
offset_bottom = -18.0
color = Color(0.8124417, 0, 0.111754455, 1)
[node name="hitsfx" type="AudioStreamPlayer2D" parent="." unique_id=2128530763]
stream = ExtResource("2_ag6wx")
[node name="shootsfx" type="AudioStreamPlayer2D" parent="." unique_id=408136521]
stream = ExtResource("3_yw082")
volume_db = -10.0
[node name="snappie" type="Timer" parent="." unique_id=807725500]
wait_time = 0.05
autostart = true
ignore_time_scale = true
[connection signal="timeout" from="Timer" to="." method="_on_new_path"]
[connection signal="timeout" from="snappie" to="." method="_on_snappie_timeout"]
+72
View File
@@ -0,0 +1,72 @@
[gd_scene format=3 uid="uid://dixc62oses4hl"]
[ext_resource type="Texture2D" uid="uid://chofj1gn6jmyo" path="res://assets/images/upgrades/dashMachine.png" id="1_efxjv"]
[ext_resource type="Script" uid="uid://b3rft2lmj60k0" path="res://assets/scripts/upgrade_ui.gd" id="1_v2t1u"]
[ext_resource type="AudioStream" uid="uid://dt154t2aall5d" path="res://assets/sounds/break.wav" id="3_64vnu"]
[sub_resource type="LabelSettings" id="LabelSettings_xyegg"]
[sub_resource type="Curve" id="Curve_xyegg"]
_data = [Vector2(0.5017794, 0.99047613), 0.0, 0.0, 0, 0, Vector2(1, 0.019047618), 0.0, 0.0, 0, 0]
point_count = 2
[node name="Control2" type="Control" unique_id=1424148917]
layout_mode = 3
anchors_preset = 0
offset_right = 48.0
offset_bottom = 48.0
script = ExtResource("1_v2t1u")
[node name="goldrect" type="ColorRect" parent="." unique_id=140383699]
visible = false
layout_mode = 0
offset_right = 48.0
offset_bottom = 48.0
color = Color(0.8, 0.6, 0, 1)
[node name="texture" type="TextureRect" parent="." unique_id=1844486601]
modulate = Color(1, 1, 1, 0)
layout_mode = 0
offset_right = 48.0
offset_bottom = 48.0
scale = Vector2(0.3, 0.3)
pivot_offset_ratio = Vector2(0.5, 0.5)
texture = ExtResource("1_efxjv")
[node name="progress" type="ColorRect" parent="." unique_id=1719328911]
layout_mode = 0
offset_left = 48.0
offset_right = 48.0
offset_bottom = 48.0
pivot_offset_ratio = Vector2(1, 0)
color = Color(0, 0, 0, 0.2509804)
[node name="Label" type="Label" parent="." unique_id=568341339]
layout_mode = 1
offset_top = 25.0
offset_right = 48.0
offset_bottom = 48.0
pivot_offset_ratio = Vector2(1, 0)
text = "x1"
label_settings = SubResource("LabelSettings_xyegg")
horizontal_alignment = 2
[node name="particles" type="CPUParticles2D" parent="." unique_id=1967275328]
position = Vector2(24, 24)
emitting = false
one_shot = true
explosiveness = 1.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 300.0
initial_velocity_max = 500.0
linear_accel_min = -500.0
linear_accel_max = -300.0
scale_amount_min = 4.0
scale_amount_max = 8.0
scale_amount_curve = SubResource("Curve_xyegg")
color = Color(1, 1, 1, 0.5019608)
[node name="breaksfx" type="AudioStreamPlayer2D" parent="." unique_id=1024345853]
stream = ExtResource("3_64vnu")
volume_db = -10.0