114 lines
3.9 KiB
Plaintext
114 lines
3.9 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="Script" uid="uid://dvokq8qdccw37" path="res://scripts/game/scene_music_player.gd" id="8_scene_music"]
|
||
[ext_resource type="PackedScene" path="res://scenes/ui/captain_panel.tscn" id="9_captain"]
|
||
|
||
[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="GameMusic" type="AudioStreamPlayer" parent="." unique_id=784369202]
|
||
script = ExtResource("8_scene_music")
|
||
track_path = "res://assets/sounds/music/music2.mp3"
|
||
playback_volume_db = -17.0
|
||
|
||
[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="HUD" type="CanvasLayer" parent="." unique_id=733012261]
|
||
layer = 20
|
||
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 = 1
|
||
offset_left = -270.0
|
||
offset_bottom = 422.0
|
||
|
||
[node name="ShipInventoryPanel" parent="HUD/HUDRoot" unique_id=1116676462 instance=ExtResource("6_inventory")]
|
||
layout_mode = 1
|
||
offset_left = -230.0
|
||
offset_top = -128.0
|
||
offset_right = 230.0
|
||
offset_bottom = 128.0
|
||
|
||
[node name="CaptainPanel" parent="HUD/HUDRoot" unique_id=424797965 instance=ExtResource("9_captain")]
|
||
layout_mode = 0
|
||
anchor_left = 1.0
|
||
anchor_right = 1.0
|
||
offset_left = -270.0
|
||
offset_top = 8.0
|
||
offset_right = -10.0
|
||
offset_bottom = 218.0
|
||
grow_horizontal = 0
|