The fleet had a second of inertia in it: every vessel's acceleration sat at roughly its own top speed, so flipping the stick while cruising took 0.58s to take effect and let go coasted 222 units, while the formation anchor the ships chase turns instantly. Acceleration is now ~3x top speed, chosen by measuring rather than taste - past 3x the reversal time stops improving because max_speed becomes the limit. Measured after: 0.18s and 23 units. test_fleet_agility guards all three numbers and proves the bounds discriminate by re-running the same measurement at the old value. The laser reaches 1450 instead of 950 and strikes 38 units either side instead of 22. Its drawn width is now derived from the hit width: the two were independent numbers that had drifted, so the beam killed things it visibly missed. LaserController's aim range also stopped hardcoding a second copy of 950. Tapping the laser button without dragging used to do nothing at all - the press was claimed, the aim begun, then thrown away on release. It now fires at the nearest enemy in range; dragging still aims precisely. That lives in the shared aimed-ability controller, so the gas bomb gains it too. Planets sat one per ~29 chunks - some 35,000 units of nothing between them. Now one per ~12, measured over 14,641 chunks. The two thresholds moved by different amounts deliberately: every SPACE-biome planet is a gas giant, so lowering both equally would have tripled the gas-giant share as well. This changes how often you find a planet, not what you find. Extractors produce half as fast to match, so expanding is what grows the economy. The research screen gave its tree 386px of 1280 and the text below it 520. The text is now at the bottom, the tree has 550, and the resource table has room and legible type - and its LOCAL column is no longer hidden behind the close button. Two map-editor bugs turned out to be one cause: a setup's id and its FILENAME are not the same thing, and both save and delete rebuilt the path from the id. ResearchLabSetup.tres holds setup_id "research_lab_1", so deleting it looked for a file that does not exist and silently refused - which read as "the first item in the list cannot be deleted" - while saving it wrote a second file under the derived name and left the original behind, so the pool served the stale twin. A third bug hid behind those: rescan() re-read through Godot's resource cache and handed back pre-save values even when the file on disk was correct. All three present to a player as "my change was not saved". Research labs no longer grant a point of their own; what conquering one is worth comes entirely from its authored map, as asked. The shipped lab map carries 1 so the balance is unchanged - only where it is configured moved. Suite 109/109. Four tests changed because the behaviour they pinned changed: the joystick coast is now derived from cruise_speed^2/(2*acceleration) rather than a constant tuned to one acceleration; the extractor wait derives from EXTRACTOR_RATE; the research-point test asserts the delegation; and the black hole test no longer assumes nobody will ever author a void-profile map. test_planet_setups and test_planet_map_assignment stopped depending on which maps happen to be in the content folder, which was making them fail when maps were added or deleted elsewhere. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
248 lines
5.7 KiB
Text
248 lines
5.7 KiB
Text
[gd_scene load_steps=4 format=3]
|
|
|
|
[ext_resource type="Script" path="res://PlanetSetupEditor.gd" id="1"]
|
|
[ext_resource type="PackedScene" path="res://SurfaceBackground.tscn" id="3"]
|
|
[ext_resource type="Script" path="res://IconButton.gd" id="4"]
|
|
|
|
[node name="PlanetSetupEditor" type="Node2D"]
|
|
script = ExtResource("1")
|
|
|
|
[node name="BackgroundLayer" parent="." instance=ExtResource("3")]
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(0, 0)
|
|
zoom = Vector2(1, 1)
|
|
|
|
[node name="ItemHost" type="Node2D" parent="."]
|
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
layer = 1
|
|
|
|
[node name="BackButton" type="Control" parent="UI"]
|
|
offset_left = 20
|
|
offset_top = 20
|
|
offset_right = 92
|
|
offset_bottom = 92
|
|
script = ExtResource("4")
|
|
icon = 1
|
|
glow_color = Color(0.9, 0.35, 0.35, 1)
|
|
|
|
[node name="BackCaption" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 20
|
|
offset_top = 96
|
|
offset_right = 92
|
|
offset_bottom = 122
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
text = "Back"
|
|
|
|
[node name="ProfileButton" type="Control" parent="UI"]
|
|
offset_left = 110
|
|
offset_top = 20
|
|
offset_right = 182
|
|
offset_bottom = 92
|
|
script = ExtResource("4")
|
|
icon = 0
|
|
glow_color = Color(0.5, 0.75, 1, 1)
|
|
|
|
[node name="ProfileValueLabel" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 190
|
|
offset_top = 36
|
|
offset_right = 340
|
|
offset_bottom = 76
|
|
theme_override_font_sizes/font_size = 26
|
|
text = "ROCKY"
|
|
|
|
[node name="NameInput" type="LineEdit" parent="UI"]
|
|
offset_left = 350
|
|
offset_top = 36
|
|
offset_right = 696
|
|
offset_bottom = 76
|
|
placeholder_text = "Setup name"
|
|
text = "Untitled"
|
|
|
|
[node name="NewButton" type="Control" parent="UI"]
|
|
offset_left = 20
|
|
offset_top = 140
|
|
offset_right = 92
|
|
offset_bottom = 212
|
|
script = ExtResource("4")
|
|
icon = 5
|
|
glow_color = Color(0.45, 0.9, 0.55, 1)
|
|
|
|
[node name="NewCaption" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 20
|
|
offset_top = 216
|
|
offset_right = 92
|
|
offset_bottom = 242
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
text = "New"
|
|
|
|
[node name="SaveButton" type="Control" parent="UI"]
|
|
offset_left = 110
|
|
offset_top = 140
|
|
offset_right = 182
|
|
offset_bottom = 212
|
|
script = ExtResource("4")
|
|
icon = 4
|
|
glow_color = Color(0.45, 0.9, 0.55, 1)
|
|
|
|
[node name="SaveCaption" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 110
|
|
offset_top = 216
|
|
offset_right = 182
|
|
offset_bottom = 242
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
text = "Save"
|
|
|
|
[node name="LoadButton" type="Control" parent="UI"]
|
|
offset_left = 200
|
|
offset_top = 140
|
|
offset_right = 272
|
|
offset_bottom = 212
|
|
script = ExtResource("4")
|
|
icon = 3
|
|
glow_color = Color(0.5, 0.75, 1, 1)
|
|
|
|
[node name="LoadCaption" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 200
|
|
offset_top = 216
|
|
offset_right = 272
|
|
offset_bottom = 242
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
text = "Load"
|
|
|
|
[node name="DeleteButton" type="Control" parent="UI"]
|
|
offset_left = 290
|
|
offset_top = 140
|
|
offset_right = 362
|
|
offset_bottom = 212
|
|
script = ExtResource("4")
|
|
icon = 28
|
|
glow_color = Color(0.9, 0.35, 0.35, 1)
|
|
|
|
[node name="DeleteCaption" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 290
|
|
offset_top = 216
|
|
offset_right = 362
|
|
offset_bottom = 242
|
|
theme_override_font_sizes/font_size = 18
|
|
horizontal_alignment = 1
|
|
text = "Delete"
|
|
|
|
[node name="StatusLabel" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 380
|
|
offset_top = 140
|
|
offset_right = 696
|
|
offset_bottom = 242
|
|
theme_override_font_sizes/font_size = 20
|
|
autowrap_mode = 2
|
|
text = ""
|
|
|
|
[node name="RewardButton" type="Control" parent="UI"]
|
|
offset_left = 350
|
|
offset_top = 20
|
|
offset_right = 422
|
|
offset_bottom = 92
|
|
script = ExtResource("4")
|
|
icon = 29
|
|
glow_color = Color(0.55, 0.9, 0.65, 1)
|
|
|
|
[node name="RewardValueLabel" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 430
|
|
offset_top = 36
|
|
offset_right = 690
|
|
offset_bottom = 76
|
|
theme_override_font_sizes/font_size = 26
|
|
theme_override_colors/font_color = Color(0.55, 0.9, 0.65, 1)
|
|
text = "DEFAULT RP"
|
|
|
|
[node name="SelectedLabel" type="Label" parent="UI"]
|
|
mouse_filter = 2
|
|
offset_left = 20
|
|
offset_top = 250
|
|
offset_right = 696
|
|
offset_bottom = 286
|
|
theme_override_font_sizes/font_size = 22
|
|
theme_override_colors/font_color = Color(1, 0.95, 0.9, 1)
|
|
autowrap_mode = 2
|
|
text = ""
|
|
|
|
[node name="PaletteRow" type="Control" parent="UI"]
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 20
|
|
offset_top = -110
|
|
offset_right = 696
|
|
offset_bottom = -20
|
|
|
|
[node name="LoadPanel" type="Control" parent="UI"]
|
|
visible = false
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
|
|
[node name="Backdrop" type="ColorRect" parent="UI/LoadPanel"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
color = Color(0.03, 0.03, 0.08, 0.94)
|
|
|
|
[node name="TitleLabel" type="Label" parent="UI/LoadPanel"]
|
|
mouse_filter = 2
|
|
anchor_right = 1.0
|
|
offset_left = 24
|
|
offset_top = 36
|
|
offset_right = -24
|
|
offset_bottom = 90
|
|
theme_override_font_sizes/font_size = 34
|
|
horizontal_alignment = 1
|
|
text = "Load a setup"
|
|
|
|
[node name="List" type="ItemList" parent="UI/LoadPanel"]
|
|
offset_left = 24
|
|
offset_top = 110
|
|
offset_right = 696
|
|
offset_bottom = 1080
|
|
theme_override_font_sizes/font_size = 34
|
|
theme_override_constants/v_separation = 30
|
|
allow_reselect = true
|
|
|
|
[node name="DeleteMapButton" type="Control" parent="UI/LoadPanel"]
|
|
offset_left = 24
|
|
offset_top = 1096
|
|
offset_right = 96
|
|
offset_bottom = 1168
|
|
script = ExtResource("4")
|
|
icon = 28
|
|
glow_color = Color(0.9, 0.35, 0.35, 1)
|
|
|
|
[node name="DeleteMapCaption" type="Label" parent="UI/LoadPanel"]
|
|
mouse_filter = 2
|
|
offset_left = 112
|
|
offset_top = 1108
|
|
offset_right = 690
|
|
offset_bottom = 1160
|
|
theme_override_font_sizes/font_size = 24
|
|
vertical_alignment = 1
|
|
text = "Delete a setup"
|
|
|
|
[node name="CloseButton" type="Control" parent="UI/LoadPanel"]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -92
|
|
offset_top = 20
|
|
offset_right = -20
|
|
offset_bottom = 92
|
|
script = ExtResource("4")
|
|
icon = 1
|
|
glow_color = Color(0.9, 0.35, 0.35, 1)
|