Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
215
scenes/MainShip.tscn
Normal file
215
scenes/MainShip.tscn
Normal file
|
|
@ -0,0 +1,215 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://ccrs28h3b2tfy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/MainShipScript.gd" id="1_h7kne"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbho4h6tg4jca" path="res://scenes/hulls/starterhull.tscn" id="2_r634y"]
|
||||
[ext_resource type="PackedScene" uid="uid://20171x3gmn1j" path="res://scenes/engines/starterengine.tscn" id="3_upe7o"]
|
||||
[ext_resource type="PackedScene" uid="uid://cf11711uqb42j" path="res://scenes/weapons/presets/SingleLaserMk1.tscn" id="4_s724s"]
|
||||
[ext_resource type="Script" path="res://scripts/SpeedLine.gd" id="6_ckx3n"]
|
||||
[ext_resource type="PackedScene" uid="uid://66m5gj2ufsop" path="res://scenes/shields/startershield.tscn" id="6_nihas"]
|
||||
[ext_resource type="Script" path="res://scripts/CameraTweaks.gd" id="7_5jx81"]
|
||||
[ext_resource type="Script" path="res://scripts/AmmoCounter.gd" id="9_h1i5f"]
|
||||
[ext_resource type="Script" path="res://scripts/FuelCounter.gd" id="10_0lke7"]
|
||||
[ext_resource type="Script" path="res://scripts/ShieldCounter.gd" id="10_2l5pr"]
|
||||
[ext_resource type="Script" path="res://scripts/MoneyCounter.gd" id="11_8f548"]
|
||||
[ext_resource type="Script" path="res://scripts/HPCounter.gd" id="11_ouonv"]
|
||||
[ext_resource type="Script" path="res://scripts/PlayerPauseController.gd" id="13_8y0ow"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsmwg1rxedi3x" path="res://scenes/Minimap.tscn" id="14_o544g"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_hkik3"]
|
||||
font_size = 48
|
||||
|
||||
[node name="MainShip" type="CharacterBody2D"]
|
||||
process_mode = 1
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_h7kne")
|
||||
metadata/_edit_horizontal_guides_ = []
|
||||
|
||||
[node name="Hull" parent="." instance=ExtResource("2_r634y")]
|
||||
|
||||
[node name="Engine" parent="." instance=ExtResource("3_upe7o")]
|
||||
|
||||
[node name="PrimaryWeapon" type="Node2D" parent="."]
|
||||
|
||||
[node name="SingleLaser" parent="PrimaryWeapon" instance=ExtResource("4_s724s")]
|
||||
position = Vector2(8, 0)
|
||||
|
||||
[node name="SecondaryWeapon" type="Node2D" parent="."]
|
||||
|
||||
[node name="Shield" parent="." instance=ExtResource("6_nihas")]
|
||||
|
||||
[node name="Camera" type="Camera2D" parent="."]
|
||||
limit_left = -4096
|
||||
limit_top = -4096
|
||||
limit_right = 4096
|
||||
limit_bottom = 4096
|
||||
position_smoothing_speed = 200.0
|
||||
script = ExtResource("7_5jx81")
|
||||
|
||||
[node name="Collision" type="CollisionPolygon2D" parent="."]
|
||||
polygon = PackedVector2Array(0, -16, 32, 0, 0, 16, 0, 4, -4, 4, -8, 8, -8, -8, -4, -4, 0, -4)
|
||||
|
||||
[node name="GUI" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Interface" type="Control" parent="GUI"]
|
||||
z_index = 78
|
||||
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="MainRectangle" type="Polygon2D" parent="GUI/Interface"]
|
||||
position = Vector2(34, 651)
|
||||
polygon = PackedVector2Array(0, 0, 175, 0, 175, 50, 0, 50)
|
||||
|
||||
[node name="InnerRectangle" type="Polygon2D" parent="GUI/Interface/MainRectangle"]
|
||||
color = Color(0, 0, 0, 1)
|
||||
polygon = PackedVector2Array(1, 1, 174, 1, 174, 49, 1, 49)
|
||||
|
||||
[node name="ZeroLine" type="Line2D" parent="GUI/Interface/MainRectangle"]
|
||||
position = Vector2(-34, -651)
|
||||
points = PackedVector2Array(59, 651, 59, 701)
|
||||
width = 1.0
|
||||
|
||||
[node name="TurboLine" type="Line2D" parent="GUI/Interface/MainRectangle"]
|
||||
position = Vector2(66, -651)
|
||||
points = PackedVector2Array(59, 651, 59, 701)
|
||||
width = 1.0
|
||||
|
||||
[node name="SpeedLine" type="Line2D" parent="GUI/Interface"]
|
||||
position = Vector2(59, 676)
|
||||
points = PackedVector2Array(0, 0, 0, 0)
|
||||
width = 48.0
|
||||
script = ExtResource("6_ckx3n")
|
||||
|
||||
[node name="FuelCounter" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 34.0
|
||||
offset_top = 625.0
|
||||
offset_right = -1071.0
|
||||
offset_bottom = -69.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Fuel: 1000/1000 units"
|
||||
script = ExtResource("10_0lke7")
|
||||
|
||||
[node name="AmmoCounter" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -63.0
|
||||
offset_top = -42.0
|
||||
offset_right = -13.0
|
||||
offset_bottom = -16.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "ammo"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 2
|
||||
script = ExtResource("9_h1i5f")
|
||||
|
||||
[node name="ShieldCounter" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 0
|
||||
offset_left = 34.0
|
||||
offset_top = 580.0
|
||||
offset_right = 239.0
|
||||
offset_bottom = 606.0
|
||||
text = "Shield Capacity: 8 / 8 units"
|
||||
script = ExtResource("10_2l5pr")
|
||||
|
||||
[node name="HPCounter" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 0
|
||||
offset_left = 34.0
|
||||
offset_top = 602.0
|
||||
offset_right = 209.0
|
||||
offset_bottom = 625.0
|
||||
text = "Hull Strength: 30 / 30 units"
|
||||
script = ExtResource("11_ouonv")
|
||||
|
||||
[node name="MoneyCounter" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 0
|
||||
offset_left = 34.0
|
||||
offset_top = 558.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 584.0
|
||||
text = "Available Money: 1000 units"
|
||||
script = ExtResource("11_8f548")
|
||||
|
||||
[node name="PauseController" type="Control" parent="GUI/Interface"]
|
||||
process_mode = 2
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("13_8y0ow")
|
||||
|
||||
[node name="UnpauseButton" type="Button" parent="GUI/Interface/PauseController"]
|
||||
layout_mode = 0
|
||||
offset_left = 311.0
|
||||
offset_top = 253.0
|
||||
offset_right = 982.0
|
||||
offset_bottom = 365.0
|
||||
mouse_filter = 1
|
||||
text = "Resume"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="GUI/Interface/PauseController"]
|
||||
layout_mode = 0
|
||||
offset_left = 312.0
|
||||
offset_top = 378.0
|
||||
offset_right = 983.0
|
||||
offset_bottom = 492.0
|
||||
text = "Quit to main menu"
|
||||
|
||||
[node name="Label" type="Label" parent="GUI/Interface/PauseController"]
|
||||
layout_mode = 0
|
||||
offset_left = 413.0
|
||||
offset_top = 108.0
|
||||
offset_right = 881.0
|
||||
offset_bottom = 178.0
|
||||
text = "The game is paused."
|
||||
label_settings = SubResource("LabelSettings_hkik3")
|
||||
|
||||
[node name="VersionLabel" type="Label" parent="GUI/Interface"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -153.0
|
||||
offset_bottom = 26.0
|
||||
grow_horizontal = 0
|
||||
text = "GammaCosmicRays version Ictar 1.1 unbuilt
|
||||
This is a debug version for internal usage."
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 2
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer"]
|
||||
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="Minimap" parent="CanvasLayer/Control" instance=ExtResource("14_o544g")]
|
||||
layout_mode = 1
|
||||
offset_left = 543.0
|
||||
offset_top = 528.0
|
||||
offset_right = 543.0
|
||||
offset_bottom = 527.76
|
||||
|
||||
[connection signal="button_up" from="GUI/Interface/PauseController/UnpauseButton" to="GUI/Interface/PauseController" method="_on_unpause_button_button_up"]
|
||||
[connection signal="button_up" from="GUI/Interface/PauseController/ExitButton" to="GUI/Interface/PauseController" method="_on_exit_button_button_up"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue