Add gas bomber skill-shot vessel

This commit is contained in:
Loïc Wisniewski 2026-08-15 04:45:15 +02:00
commit 1d9afcbc2e
28 changed files with 882 additions and 85 deletions

188
Main.tscn
View file

@ -1,4 +1,4 @@
[gd_scene load_steps=29 format=3]
[gd_scene load_steps=30 format=3]
[ext_resource type="Script" path="res://Starfield.gd" id="1"]
[ext_resource type="Script" path="res://Fleet.gd" id="2"]
@ -27,6 +27,7 @@
[ext_resource type="Script" path="res://VesselDeliveryField.gd" id="26"]
[ext_resource type="Script" path="res://ResourceTransferList.gd" id="27"]
[ext_resource type="Script" path="res://GasCargoCounter.gd" id="28"]
[ext_resource type="Script" path="res://GasBombController.gd" id="29"]
[sub_resource type="ShaderMaterial" id="1"]
shader = ExtResource("5")
@ -55,6 +56,9 @@ script = ExtResource("1")
[node name="Fleet" type="Node2D" parent="."]
script = ExtResource("2")
[node name="GasBombController" type="Node2D" parent="."]
script = ExtResource("29")
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(0, 0)
zoom = Vector2(1, 1)
@ -256,6 +260,21 @@ offset_bottom = -24
script = ExtResource("10")
icon = 7
[node name="GasBombButton" type="Control" parent="UI"]
visible = false
mouse_filter = 2
anchor_left = 1.0
anchor_right = 1.0
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = -172
offset_right = -24
offset_top = -344
offset_bottom = -196
script = ExtResource("10")
icon = 32
glow_color = Color(0.96, 0.22, 0.72, 1)
[node name="PivotCWButton" type="Control" parent="UI"]
mouse_filter = 2
anchor_left = 1.0
@ -788,8 +807,8 @@ horizontal_alignment = 1
[node name="AvailableInterceptor" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -180
offset_right = -60
offset_left = -290
offset_right = -178
offset_top = 255
offset_bottom = 375
script = ExtResource("10")
@ -799,8 +818,8 @@ icon = 2
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250
offset_right = 10
offset_left = -330
offset_right = -138
offset_top = 380
offset_bottom = 460
theme_override_font_sizes/font_size = 22
@ -809,8 +828,8 @@ horizontal_alignment = 1
[node name="AvailableShield" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 60
offset_right = 180
offset_left = -56
offset_right = 56
offset_top = 255
offset_bottom = 375
script = ExtResource("10")
@ -821,8 +840,30 @@ glow_color = Color(0.45, 0.8, 1, 1)
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -10
offset_right = 250
offset_left = -96
offset_right = 96
offset_top = 380
offset_bottom = 460
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
[node name="AvailableGasBomber" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 178
offset_right = 290
offset_top = 255
offset_bottom = 375
script = ExtResource("10")
icon = 31
glow_color = Color(0.96, 0.32, 0.78, 1)
[node name="AvailableGasBomberLabel" type="Label" parent="UI/HangarMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 138
offset_right = 330
offset_top = 380
offset_bottom = 460
theme_override_font_sizes/font_size = 22
@ -840,8 +881,8 @@ horizontal_alignment = 1
[node name="FleetInterceptor" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -180
offset_right = -60
offset_left = -290
offset_right = -178
offset_top = 565
offset_bottom = 685
script = ExtResource("10")
@ -851,8 +892,8 @@ icon = 2
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -250
offset_right = 10
offset_left = -330
offset_right = -138
offset_top = 690
offset_bottom = 770
theme_override_font_sizes/font_size = 22
@ -861,8 +902,8 @@ horizontal_alignment = 1
[node name="FleetShield" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 60
offset_right = 180
offset_left = -56
offset_right = 56
offset_top = 565
offset_bottom = 685
script = ExtResource("10")
@ -873,8 +914,30 @@ glow_color = Color(0.45, 0.8, 1, 1)
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -10
offset_right = 250
offset_left = -96
offset_right = 96
offset_top = 690
offset_bottom = 770
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
[node name="FleetGasBomber" type="Control" parent="UI/HangarMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 178
offset_right = 290
offset_top = 565
offset_bottom = 685
script = ExtResource("10")
icon = 31
glow_color = Color(0.96, 0.32, 0.78, 1)
[node name="FleetGasBomberLabel" type="Label" parent="UI/HangarMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 138
offset_right = 330
offset_top = 690
offset_bottom = 770
theme_override_font_sizes/font_size = 22
@ -924,8 +987,8 @@ script = ExtResource("24")
[node name="VesselA" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -290
offset_right = -170
offset_left = -300
offset_right = -190
offset_top = 274
offset_bottom = 394
script = ExtResource("10")
@ -935,8 +998,8 @@ glow_color = Color(0.25, 0.85, 1, 1)
[node name="VesselB" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = -60
offset_right = 60
offset_left = -145
offset_right = -35
offset_top = 274
offset_bottom = 394
script = ExtResource("10")
@ -946,8 +1009,19 @@ glow_color = Color(0.45, 0.8, 1, 1)
[node name="VesselC" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 170
offset_right = 290
offset_left = 35
offset_right = 145
offset_top = 274
offset_bottom = 394
script = ExtResource("10")
icon = 31
glow_color = Color(0.96, 0.32, 0.78, 1)
[node name="VesselD" type="Control" parent="UI/LabMenu"]
anchor_left = 0.5
anchor_right = 0.5
offset_left = 190
offset_right = 300
offset_top = 274
offset_bottom = 394
script = ExtResource("10")
@ -971,7 +1045,7 @@ mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -330
offset_right = -130
offset_right = -160
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
@ -982,8 +1056,8 @@ text = "Interceptor"
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = -100
offset_right = 100
offset_left = -175
offset_right = -5
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
@ -994,7 +1068,19 @@ text = "Shield"
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 130
offset_left = 5
offset_right = 175
offset_top = 400
offset_bottom = 460
theme_override_font_sizes/font_size = 22
horizontal_alignment = 1
text = "Gas Bomber"
[node name="VesselDLabel" type="Label" parent="UI/LabMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
offset_left = 160
offset_right = 330
offset_top = 400
offset_bottom = 460
@ -1246,8 +1332,8 @@ anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -220
offset_right = -72
offset_left = -310
offset_right = -182
offset_top = -100
offset_bottom = 48
script = ExtResource("10")
@ -1259,11 +1345,11 @@ anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -290
offset_right = -2
offset_left = -330
offset_right = -162
offset_top = 56
offset_bottom = 136
theme_override_font_sizes/font_size = 32
theme_override_font_sizes/font_size = 24
text = "Interceptor"
horizontal_alignment = 1
@ -1272,8 +1358,8 @@ anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 72
offset_right = 220
offset_left = -148
offset_right = -20
offset_top = -100
offset_bottom = 48
script = ExtResource("10")
@ -1286,15 +1372,43 @@ anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 2
offset_right = 290
offset_left = -168
offset_right = 0
offset_top = 56
offset_bottom = 136
theme_override_font_sizes/font_size = 32
theme_override_font_sizes/font_size = 24
autowrap_mode = 2
text = "Shield Vessel"
horizontal_alignment = 1
[node name="GasBomberButton" type="Control" parent="UI/CraftMenu"]
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 14
offset_right = 142
offset_top = -100
offset_bottom = 28
script = ExtResource("10")
icon = 31
glow_color = Color(0.96, 0.32, 0.78, 1)
[node name="GasBomberLabel" type="Label" parent="UI/CraftMenu"]
mouse_filter = 2
anchor_left = 0.5
anchor_right = 0.5
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = -6
offset_right = 162
offset_top = 56
offset_bottom = 150
theme_override_font_sizes/font_size = 24
autowrap_mode = 2
text = "Gas Bomber"
horizontal_alignment = 1
[node name="QueueLabel" type="Label" parent="UI/CraftMenu"]
mouse_filter = 2
anchor_left = 1.0