Mutually_Assured_Destruction/player/player.tscn

373 lines
9.8 KiB
Plaintext
Raw Normal View History

2023-06-11 14:51:41 -04:00
[gd_scene load_steps=22 format=3 uid="uid://b5gb5paiupum"]
2023-06-10 16:53:33 -04:00
[ext_resource type="Script" path="res://player/player.cs" id="1_of2l4"]
2023-06-11 14:26:43 -04:00
[ext_resource type="AudioStream" uid="uid://dye3nhm41yk6r" path="res://audio/chatter.wav" id="2_sa1qd"]
[ext_resource type="AudioStream" uid="uid://c8dcqkmytnyay" path="res://audio/btn.wav" id="3_00x5l"]
2023-06-10 16:53:33 -04:00
2023-06-10 18:41:49 -04:00
[sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_1ejpb"]
frustum_near = 0.032
2023-06-11 09:10:21 -04:00
2023-06-11 14:21:33 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_pws5q"]
font_size = 28
2023-06-11 14:51:41 -04:00
[sub_resource type="Gradient" id="Gradient_g0gsr"]
colors = PackedColorArray(0.625134, 0, 0.0234951, 1, 0.409478, 0.173927, 1.44392e-07, 1)
2023-06-10 18:41:49 -04:00
[sub_resource type="GradientTexture2D" id="GradientTexture2D_y5odr"]
2023-06-11 14:51:41 -04:00
gradient = SubResource("Gradient_g0gsr")
2023-06-10 18:41:49 -04:00
fill_to = Vector2(0.858974, 0.615385)
[sub_resource type="Gradient" id="Gradient_camjl"]
colors = PackedColorArray(0.908061, 0.573562, 0.518565, 1, 1, 0.723217, 0.716857, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_2xkee"]
gradient = SubResource("Gradient_camjl")
width = 24
height = 255
[sub_resource type="Gradient" id="Gradient_dxeak"]
2023-06-10 19:44:27 -04:00
colors = PackedColorArray(0.533956, 4.45209e-07, 0.129296, 1, 0.902273, 0.0004242, 0.128051, 1)
2023-06-10 18:41:49 -04:00
[sub_resource type="GradientTexture2D" id="GradientTexture2D_d5w6a"]
gradient = SubResource("Gradient_dxeak")
width = 24
height = 255
[sub_resource type="Gradient" id="Gradient_tpani"]
colors = PackedColorArray(0.893472, 0.979245, 1, 1, 0.347927, 0.885716, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_7myfq"]
gradient = SubResource("Gradient_tpani")
width = 24
height = 255
[sub_resource type="Gradient" id="Gradient_127f1"]
colors = PackedColorArray(0.00784314, 0.152941, 0.454902, 1, 0.349457, 0.500016, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_kdame"]
gradient = SubResource("Gradient_127f1")
width = 24
height = 255
[sub_resource type="Gradient" id="Gradient_psl0d"]
colors = PackedColorArray(0, 0.933055, 0.58552, 1, 0.793971, 1, 0.891535, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_18k81"]
gradient = SubResource("Gradient_psl0d")
width = 24
height = 255
[sub_resource type="Gradient" id="Gradient_od2su"]
2023-06-10 19:44:27 -04:00
colors = PackedColorArray(1.44392e-06, 0.334951, 0.24823, 1, 1.8771e-06, 0.766586, 0.320037, 1)
2023-06-10 18:41:49 -04:00
[sub_resource type="GradientTexture2D" id="GradientTexture2D_nfg3s"]
gradient = SubResource("Gradient_od2su")
width = 24
height = 255
2023-06-11 14:49:51 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_adeuk"]
font_size = 12
[sub_resource type="SphereMesh" id="SphereMesh_mtv4x"]
2023-06-11 14:02:32 -04:00
[node name="player" type="Camera3D" node_paths=PackedStringArray("_con", "_mousePosLabel", "_cursorPosLabel", "_cursor", "_cursorPoint", "_nuke", "_pr", "_kash", "_chatter", "_sndChtr", "_sndBtn", "_tmrChtr", "_tmrCashGen")]
2023-06-10 18:41:49 -04:00
attributes = SubResource("CameraAttributesPhysical_1ejpb")
2023-06-10 16:53:33 -04:00
script = ExtResource("1_of2l4")
2023-06-11 14:21:33 -04:00
_con = NodePath("HUD/Debug info/Label")
_mousePosLabel = NodePath("HUD/Debug info/mousePos")
_cursorPosLabel = NodePath("HUD/Debug info/cursorPointPos")
2023-06-11 09:10:21 -04:00
_cursor = NodePath("cursor")
_cursorPoint = NodePath("cursorPoint")
2023-06-11 14:21:33 -04:00
_nuke = NodePath("HUD/Buttons and info/NukeBar")
_pr = NodePath("HUD/Buttons and info/PrBar")
_kash = NodePath("HUD/Buttons and info/KashBar")
_chatter = NodePath("HUD/lbl_Chatter")
2023-06-11 10:45:58 -04:00
_sndChtr = NodePath("snd_Chatter")
_sndBtn = NodePath("snd_Button")
_tmrChtr = NodePath("tmr_Chatter")
2023-06-11 14:02:32 -04:00
_tmrCashGen = NodePath("tmr_kash")
2023-06-11 09:10:21 -04:00
2023-06-11 14:21:33 -04:00
[node name="HUD" type="Control" parent="."]
2023-06-11 09:10:21 -04:00
layout_mode = 3
2023-06-11 14:21:33 -04:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Debug info" type="Control" parent="HUD"]
layout_mode = 1
2023-06-11 09:10:21 -04:00
anchors_preset = 0
2023-06-11 14:21:33 -04:00
offset_left = 33.0
offset_top = 24.0
offset_right = 33.0
offset_bottom = 24.0
[node name="mousePos" type="Label" parent="HUD/Debug info"]
layout_mode = 1
offset_top = 27.0
offset_right = 89.0
offset_bottom = 53.0
2023-06-11 09:10:21 -04:00
text = "Eat ze caca."
2023-06-11 14:21:33 -04:00
[node name="cursorPointPos" type="Label" parent="HUD/Debug info"]
layout_mode = 1
offset_top = 60.0
offset_right = 89.0
offset_bottom = 86.0
2023-06-11 09:10:21 -04:00
text = "Eat ze caca."
2023-06-11 14:21:33 -04:00
[node name="Label" type="Label" parent="HUD/Debug info"]
layout_mode = 1
offset_right = 89.0
offset_bottom = 26.0
2023-06-10 16:53:33 -04:00
text = "Eat ze caca."
2023-06-11 09:10:21 -04:00
2023-06-11 14:21:33 -04:00
[node name="lbl_Chatter" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -221.0
offset_top = -121.5
offset_right = 221.0
offset_bottom = 121.5
grow_horizontal = 2
grow_vertical = 2
label_settings = SubResource("LabelSettings_pws5q")
autowrap_mode = 3
[node name="Buttons and info" type="Control" parent="HUD"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="btn_boom" type="Button" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -132.0
offset_top = -132.0
grow_horizontal = 0
grow_vertical = 0
2023-06-11 14:08:44 -04:00
text = "Nuke Enemy"
2023-06-10 18:41:49 -04:00
icon = SubResource("GradientTexture2D_y5odr")
icon_alignment = 1
expand_icon = true
2023-06-11 14:21:33 -04:00
[node name="btn_nukes" type="Button" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -265.0
offset_top = -132.0
offset_right = -133.0
grow_horizontal = 0
grow_vertical = 0
2023-06-11 14:08:44 -04:00
text = "BDE"
icon_alignment = 1
expand_icon = true
2023-06-11 14:21:33 -04:00
[node name="btn_pr" type="Button" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -402.0
offset_top = -132.0
offset_right = -270.0
grow_horizontal = 0
grow_vertical = 0
2023-06-11 14:08:44 -04:00
text = ":)
"
icon_alignment = 1
expand_icon = true
2023-06-11 14:21:33 -04:00
[node name="btn_kashcow" type="Button" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -538.0
offset_top = -132.0
offset_right = -406.0
grow_horizontal = 0
grow_vertical = 0
2023-06-11 14:08:44 -04:00
text = "$"
icon_alignment = 1
expand_icon = true
2023-06-11 14:21:33 -04:00
[node name="NukeBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -24.0
offset_top = -392.0
offset_bottom = -137.0
grow_horizontal = 0
grow_vertical = 0
2023-06-10 18:41:49 -04:00
value = 50.0
rounded = true
2023-06-11 14:02:32 -04:00
allow_greater = true
allow_lesser = true
2023-06-10 18:41:49 -04:00
fill_mode = 3
texture_under = SubResource("GradientTexture2D_2xkee")
texture_progress = SubResource("GradientTexture2D_d5w6a")
2023-06-11 14:21:33 -04:00
[node name="PrBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -51.0
offset_top = -392.0
offset_right = -27.0
offset_bottom = -137.0
grow_horizontal = 0
grow_vertical = 0
2023-06-10 18:41:49 -04:00
value = 50.0
rounded = true
2023-06-11 14:02:32 -04:00
allow_greater = true
allow_lesser = true
2023-06-10 18:41:49 -04:00
fill_mode = 3
texture_under = SubResource("GradientTexture2D_7myfq")
texture_progress = SubResource("GradientTexture2D_kdame")
2023-06-11 14:21:33 -04:00
[node name="KashBar" type="TextureProgressBar" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -81.0
offset_top = -392.0
offset_right = -57.0
offset_bottom = -137.0
grow_horizontal = 0
grow_vertical = 0
2023-06-11 14:02:32 -04:00
max_value = 1000.0
value = 5.0
2023-06-10 18:41:49 -04:00
rounded = true
2023-06-11 14:02:32 -04:00
allow_greater = true
allow_lesser = true
2023-06-10 18:41:49 -04:00
fill_mode = 3
texture_under = SubResource("GradientTexture2D_18k81")
texture_progress = SubResource("GradientTexture2D_nfg3s")
2023-06-10 19:44:27 -04:00
2023-06-11 14:21:33 -04:00
[node name="lbl_Nukes" type="Label" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 2.0
offset_top = -297.0
offset_right = 267.0
offset_bottom = -271.0
grow_horizontal = 0
grow_vertical = 0
2023-06-10 19:44:27 -04:00
rotation = 1.5708
2023-06-11 14:21:33 -04:00
text = "ARMS
"
2023-06-10 19:44:27 -04:00
horizontal_alignment = 1
vertical_alignment = 1
2023-06-11 14:21:33 -04:00
[node name="lbl_PR" type="Label" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -25.0
offset_top = -178.0
offset_right = 15.0
offset_bottom = -152.0
grow_horizontal = 0
grow_vertical = 0
2023-06-10 19:44:27 -04:00
rotation = 1.5708
text = "PR"
2023-06-11 14:21:33 -04:00
[node name="lbl_Kash" type="Label" parent="HUD/Buttons and info"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -56.0
offset_top = -181.0
offset_right = -14.0
offset_bottom = -155.0
grow_horizontal = 0
grow_vertical = 0
2023-06-10 19:44:27 -04:00
rotation = 1.5708
2023-06-11 14:21:33 -04:00
text = "KA$H"
2023-06-11 14:49:51 -04:00
[node name="Desc" type="Label" parent="HUD"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -535.0
offset_top = -194.0
offset_right = -134.0
offset_bottom = -134.0
grow_horizontal = 0
grow_vertical = 0
text = "Kash Flow: +2M$/sec. PR: +10%. Mtons: +10.
Cost: 6M$. Cost: 5M$. PR: -5%.
Cost: 30M$."
label_settings = SubResource("LabelSettings_adeuk")
2023-06-11 09:10:21 -04:00
[node name="cursor" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.17786)
target_position = Vector3(0, 0, -999)
[node name="cursorPoint" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="cursorPointMesh" type="MeshInstance3D" parent="cursorPoint"]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
mesh = SubResource("SphereMesh_mtv4x")
2023-06-11 09:10:21 -04:00
skeleton = NodePath("../..")
2023-06-11 10:45:58 -04:00
[node name="snd_Chatter" type="AudioStreamPlayer" parent="."]
2023-06-11 11:23:38 -04:00
stream = ExtResource("2_sa1qd")
2023-06-11 14:49:51 -04:00
volume_db = -20.771
pitch_scale = 0.88
2023-06-11 10:45:58 -04:00
[node name="snd_Button" type="AudioStreamPlayer" parent="."]
2023-06-11 11:23:38 -04:00
stream = ExtResource("3_00x5l")
2023-06-11 10:45:58 -04:00
[node name="tmr_Chatter" type="Timer" parent="."]
wait_time = 3.0
2023-06-11 14:02:32 -04:00
one_shot = true
[node name="tmr_kash" type="Timer" parent="."]
autostart = true