105 lines
3.4 KiB
Text
105 lines
3.4 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://bsnrcw64qr2hr"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/Star System/star_system.gd" id="1_xx8w2"]
|
|
[ext_resource type="PackedScene" uid="uid://dpggye27ln436" path="res://scenes/Star System/Required Scenes/star_generator.tscn" id="2_iqrn0"]
|
|
[ext_resource type="Script" path="res://scripts/Star System/projectile_container.gd" id="3_h5cm3"]
|
|
[ext_resource type="Material" uid="uid://bawhivm5cr2w" path="res://shaders/materials/nebula_shader.tres" id="4_o0ld7"]
|
|
[ext_resource type="Theme" uid="uid://dmb8bcdghdjd" path="res://main_theme.tres" id="5_ag247"]
|
|
[ext_resource type="Script" path="res://scripts/Star System/nebula.gd" id="5_la84n"]
|
|
[ext_resource type="PackedScene" uid="uid://c7is7y341f6wa" path="res://scenes/Star System/Required Scenes/pause_controller.tscn" id="6_61vq5"]
|
|
[ext_resource type="Script" path="res://scripts/Star System/faction.gd" id="7_wm3vi"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_4yoh5"]
|
|
resource_name = "version_label"
|
|
script/source = "extends Label
|
|
|
|
func _ready():
|
|
text = \"cosmic {version}\".format({\"version\" : Game.gameversion})
|
|
if OS.has_feature(\"editor\"):
|
|
text += \" uncompiled\\ndebug/prerelease version\"
|
|
else:
|
|
if Game.beta:
|
|
text += \" beta\\nclosed beta\"
|
|
"
|
|
|
|
[sub_resource type="GDScript" id="GDScript_r38d8"]
|
|
resource_name = "get_border_points"
|
|
script/source = "extends Line2D
|
|
|
|
@onready var star_system = get_parent()
|
|
|
|
func _ready():
|
|
var halved_width = star_system.width / 2
|
|
var halved_height = star_system.height / 2
|
|
points = [
|
|
Vector2(-halved_width + width, -halved_height + width),
|
|
Vector2(halved_width - width, -halved_height + width),
|
|
Vector2(halved_width - width, halved_height - width),
|
|
Vector2(-halved_width + width, halved_height - width)
|
|
]
|
|
"
|
|
|
|
[node name="StarSystem" type="Node"]
|
|
process_mode = 3
|
|
script = ExtResource("1_xx8w2")
|
|
pause_controller_scene = ExtResource("6_61vq5")
|
|
|
|
[node name="Stars" parent="." instance=ExtResource("2_iqrn0")]
|
|
stars_amount = 400
|
|
|
|
[node name="ProjectileContainer" type="Node" parent="."]
|
|
process_mode = 1
|
|
script = ExtResource("3_h5cm3")
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Version" type="Label" parent="CanvasLayer"]
|
|
z_index = 4096
|
|
z_as_relative = false
|
|
offset_top = 6.0
|
|
offset_right = 1280.0
|
|
offset_bottom = 29.0
|
|
theme = ExtResource("5_ag247")
|
|
text = "GammaCosmicRays version Ifre 1.0"
|
|
horizontal_alignment = 1
|
|
script = SubResource("GDScript_4yoh5")
|
|
|
|
[node name="Background" type="CanvasLayer" parent="."]
|
|
process_mode = 1
|
|
layer = -10
|
|
|
|
[node name="Nebula" type="ColorRect" parent="Background"]
|
|
z_index = -100
|
|
material = ExtResource("4_o0ld7")
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
script = ExtResource("5_la84n")
|
|
color_background = Color(0.36, 0.18612, 0.1116, 1)
|
|
|
|
[node name="FactionPlayer" type="Node" parent="."]
|
|
script = ExtResource("7_wm3vi")
|
|
faction = 1
|
|
|
|
[node name="FactionPeaceful" type="Node" parent="."]
|
|
script = ExtResource("7_wm3vi")
|
|
faction = 2
|
|
|
|
[node name="FactionNeutral" type="Node" parent="."]
|
|
script = ExtResource("7_wm3vi")
|
|
faction = 3
|
|
|
|
[node name="FactionAggressive" type="Node" parent="."]
|
|
script = ExtResource("7_wm3vi")
|
|
faction = 4
|
|
|
|
[node name="SystemBorder" type="Line2D" parent="."]
|
|
z_index = -99
|
|
points = PackedVector2Array(0, 0, 1280, 0, 1280, 720, 0, 720)
|
|
closed = true
|
|
width = 8.0
|
|
default_color = Color(1, 1, 1, 0.521569)
|
|
script = SubResource("GDScript_r38d8")
|