114 lines
3.7 KiB
Plaintext
114 lines
3.7 KiB
Plaintext
[gd_scene format=3 uid="uid://oy4ny275s23s"]
|
||
|
||
[ext_resource type="Script" uid="uid://d3behbql2g2b7" path="res://scripts/game/game.gd" id="1_game"]
|
||
[ext_resource type="Script" uid="uid://b20w2c0ucytmg" path="res://scripts/game/space_level_background.gd" id="2_background"]
|
||
[ext_resource type="PackedScene" path="res://scenes/game/player_ship.tscn" id="3_player"]
|
||
[ext_resource type="Script" uid="uid://bcfvflaqnmfa5" path="res://scripts/game/flight_hud.gd" id="4_hud"]
|
||
[ext_resource type="PackedScene" path="res://scenes/ui/ship_equipment_panel.tscn" id="5_equipment"]
|
||
[ext_resource type="PackedScene" path="res://scenes/ui/ship_inventory_panel.tscn" id="6_inventory"]
|
||
[ext_resource type="PackedScene" path="res://scenes/game/weapon_test_target.tscn" id="7_target"]
|
||
|
||
[sub_resource type="RectangleShape2D" id="TopWall"]
|
||
size = Vector2(5200, 40)
|
||
|
||
[sub_resource type="RectangleShape2D" id="BottomWall"]
|
||
size = Vector2(5200, 40)
|
||
|
||
[sub_resource type="RectangleShape2D" id="LeftWall"]
|
||
size = Vector2(40, 3600)
|
||
|
||
[sub_resource type="RectangleShape2D" id="RightWall"]
|
||
size = Vector2(40, 3600)
|
||
|
||
[node name="Game" type="Node2D" unique_id=1630707678]
|
||
script = ExtResource("1_game")
|
||
|
||
[node name="SpaceBackground" type="Node2D" parent="." unique_id=300719476]
|
||
z_index = -20
|
||
script = ExtResource("2_background")
|
||
|
||
[node name="WorldBounds" type="StaticBody2D" parent="." unique_id=1631186063]
|
||
collision_mask = 0
|
||
|
||
[node name="TopWall" type="CollisionShape2D" parent="WorldBounds" unique_id=408485617]
|
||
position = Vector2(0, -1780)
|
||
shape = SubResource("TopWall")
|
||
|
||
[node name="BottomWall" type="CollisionShape2D" parent="WorldBounds" unique_id=264280939]
|
||
position = Vector2(0, 1780)
|
||
shape = SubResource("BottomWall")
|
||
|
||
[node name="LeftWall" type="CollisionShape2D" parent="WorldBounds" unique_id=1859447770]
|
||
position = Vector2(-2580, 0)
|
||
shape = SubResource("LeftWall")
|
||
|
||
[node name="RightWall" type="CollisionShape2D" parent="WorldBounds" unique_id=1866196697]
|
||
position = Vector2(2580, 0)
|
||
shape = SubResource("RightWall")
|
||
|
||
[node name="PlayerShip" parent="." unique_id=1837545573 instance=ExtResource("3_player")]
|
||
|
||
[node name="WeaponTestTarget" parent="." unique_id=1240462223 instance=ExtResource("7_target")]
|
||
position = Vector2(240, 0)
|
||
|
||
[node name="HUD" type="CanvasLayer" parent="." unique_id=733012261]
|
||
script = ExtResource("4_hud")
|
||
|
||
[node name="HUDRoot" type="Control" parent="HUD" unique_id=539413585]
|
||
layout_mode = 3
|
||
anchors_preset = 15
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
grow_horizontal = 2
|
||
grow_vertical = 2
|
||
mouse_filter = 2
|
||
|
||
[node name="DebugToggle" type="Button" parent="HUD/HUDRoot" unique_id=1861951018]
|
||
layout_mode = 0
|
||
offset_left = 18.0
|
||
offset_top = 16.0
|
||
offset_right = 110.0
|
||
offset_bottom = 42.0
|
||
theme_override_colors/font_color = Color(0.72, 0.88, 0.98, 1)
|
||
text = "DEBUG [−]"
|
||
flat = true
|
||
|
||
[node name="DebugInfo" type="Label" parent="HUD/HUDRoot" unique_id=604915599]
|
||
layout_mode = 0
|
||
offset_left = 22.0
|
||
offset_top = 48.0
|
||
offset_right = 295.0
|
||
offset_bottom = 420.0
|
||
theme_override_colors/font_color = Color(0.72, 0.88, 0.98, 1)
|
||
theme_override_font_sizes/font_size = 11
|
||
text = "STATEK
|
||
KADŁUB: 100 / 100
|
||
TARCZE: 100 / 100
|
||
ENERGIA: 100 / 100"
|
||
|
||
[node name="ShipEquipmentPanel" parent="HUD/HUDRoot" unique_id=1637844841 instance=ExtResource("5_equipment")]
|
||
layout_mode = 0
|
||
anchors_preset = 1
|
||
anchor_left = 1.0
|
||
anchor_right = 1.0
|
||
offset_left = -248.0
|
||
offset_top = 14.0
|
||
offset_right = -14.0
|
||
offset_bottom = 454.0
|
||
grow_horizontal = 0
|
||
grow_vertical = 0
|
||
|
||
[node name="ShipInventoryPanel" parent="HUD/HUDRoot" unique_id=1116676462 instance=ExtResource("6_inventory")]
|
||
layout_mode = 0
|
||
anchors_preset = 8
|
||
anchor_left = 0.5
|
||
anchor_top = 0.5
|
||
anchor_right = 0.5
|
||
anchor_bottom = 0.5
|
||
offset_left = -195.0
|
||
offset_top = -165.0
|
||
offset_right = 195.0
|
||
offset_bottom = 165.0
|
||
grow_horizontal = 2
|
||
grow_vertical = 2
|