Mutually_Assured_Destruction/player/player.tscn

460 lines
13 KiB
Plaintext
Raw Normal View History

2023-06-11 16:32:03 -04:00
[gd_scene load_steps=28 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 16:32:03 -04:00
[ext_resource type="PackedScene" uid="uid://2pw0p13lcklv" path="res://buildings/kash_buildings/factory.tscn" id="2_ox06o"]
2023-06-11 15:55:47 -04:00
[ext_resource type="AudioStream" uid="uid://07ben02qe8yc" path="res://audio/chatter.wav" id="2_sa1qd"]
[ext_resource type="AudioStream" uid="uid://ds7ec1n3pytnr" path="res://audio/btn.wav" id="3_00x5l"]
2023-06-11 16:32:03 -04:00
[ext_resource type="PackedScene" uid="uid://b8f1n3hp1fdlm" path="res://buildings/propaganda_buildings/radiotower.tscn" id="3_j4p3m"]
[ext_resource type="PackedScene" uid="uid://bh6e2nxqswoqg" path="res://buildings/arms_buildings/nuke.tscn" id="4_2vnif"]
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 18:06:52 -04:00
shadow_size = 5
shadow_color = Color(0, 0, 0, 0.580392)
2023-06-11 14:21:33 -04:00
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
2023-06-11 15:55:47 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_xdjlf"]
font_color = Color(0, 0, 0, 1)
2023-06-10 18:41:49 -04:00
[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 15:55:47 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_2lyli"]
font_color = Color(0, 0, 0, 1)
2023-06-11 14:49:51 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_adeuk"]
2023-06-11 15:55:47 -04:00
font_size = 15
2023-06-11 18:06:52 -04:00
shadow_size = 10
shadow_color = Color(0, 0, 0, 0.603922)
2023-06-11 14:49:51 -04:00
2023-06-11 15:17:45 -04:00
[sub_resource type="LabelSettings" id="LabelSettings_kxike"]
2023-06-11 15:55:47 -04:00
font_size = 64
2023-06-11 15:17:45 -04:00
outline_size = 7
outline_color = Color(0, 0, 0, 1)
[sub_resource type="SphereMesh" id="SphereMesh_mtv4x"]
2023-06-11 15:55:47 -04:00
[node name="player" type="Camera3D" node_paths=PackedStringArray("_con", "_mousePosLabel", "_cursorPosLabel", "_cursor", "_cursorPoint", "_nuke", "_pr", "_kash", "_chatter", "_timer", "_pr_count", "_nuke_count", "_kash_count", "_sndChtr", "_sndBtn", "_tmrChtr", "_tmrCashGen", "_btnEnd", "_btnNukes", "_btnPR", "_btnKashCow")]
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 16:32:03 -04:00
_kash_building = ExtResource("2_ox06o")
_pr_building = ExtResource("3_j4p3m")
_nuke_building = ExtResource("4_2vnif")
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 15:16:40 -04:00
_timer = NodePath("HUD/Time")
2023-06-11 15:55:47 -04:00
_pr_count = NodePath("HUD/Buttons and info/PrBar/PrCount")
_nuke_count = NodePath("HUD/Buttons and info/NukeBar/NukeCount")
_kash_count = NodePath("HUD/Buttons and info/KashBar/KashCount")
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 15:16:40 -04:00
_btnEnd = NodePath("HUD/Buttons and info/btn_boom")
_btnNukes = NodePath("HUD/Buttons and info/btn_nukes")
_btnPR = NodePath("HUD/Buttons and info/btn_pr")
_btnKashCow = NodePath("HUD/Buttons and info/btn_kashcow")
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"]
2023-06-11 15:55:47 -04:00
visible = false
2023-06-11 14:21:33 -04:00
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 15:55:47 -04:00
disabled = true
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 15:55:47 -04:00
text = "Arms"
2023-06-11 14:08:44 -04:00
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 16:32:03 -04:00
text = "Approval
2023-06-11 14:08:44 -04:00
"
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 16:32:03 -04:00
text = "Ka$h"
2023-06-11 14:08:44 -04:00
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
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 15:55:47 -04:00
[node name="NukeCount" type="Label" parent="HUD/Buttons and info/NukeBar"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 24.0
offset_top = -125.5
offset_right = 43.0
offset_bottom = -99.5
grow_vertical = 2
rotation = 1.57079
text = "69"
label_settings = SubResource("LabelSettings_xdjlf")
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 15:55:47 -04:00
[node name="PrCount" type="Label" parent="HUD/Buttons and info/PrBar"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 24.0
offset_top = -125.5
offset_right = 43.0
offset_bottom = -99.5
grow_vertical = 2
rotation = 1.57079
text = "69"
label_settings = SubResource("LabelSettings_xdjlf")
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
2023-06-11 15:55:47 -04:00
offset_left = -79.0
2023-06-11 14:21:33 -04:00
offset_top = -392.0
2023-06-11 15:55:47 -04:00
offset_right = -55.0
2023-06-11 14:21:33 -04:00
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 15:55:47 -04:00
[node name="KashCount" type="Label" parent="HUD/Buttons and info/KashBar"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 24.0
offset_top = -125.5
offset_right = 47.0
offset_bottom = -99.5
grow_vertical = 2
rotation = 1.57079
text = "69 "
label_settings = SubResource("LabelSettings_xdjlf")
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-11 15:55:47 -04:00
label_settings = SubResource("LabelSettings_2lyli")
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 15:55:47 -04:00
label_settings = SubResource("LabelSettings_2lyli")
2023-06-10 19:44:27 -04:00
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 15:55:47 -04:00
label_settings = SubResource("LabelSettings_2lyli")
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
2023-06-11 15:55:47 -04:00
offset_left = -556.0
offset_top = -210.0
offset_right = -132.0
offset_bottom = -135.0
2023-06-11 14:49:51 -04:00
grow_horizontal = 0
grow_vertical = 0
2023-06-11 17:49:57 -04:00
text = "Kash Flow: +2M$/sec. PR: +10%. Mtons: +20.
Cost: 6M$. Cost: 5M$. PR: -15%.
2023-06-11 14:49:51 -04:00
Cost: 30M$."
label_settings = SubResource("LabelSettings_adeuk")
2023-06-11 15:16:40 -04:00
[node name="Time" type="Label" parent="HUD"]
layout_mode = 1
2023-06-11 15:55:47 -04:00
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -37.0
offset_right = 37.0
offset_bottom = 91.0
grow_horizontal = 2
2023-06-11 15:17:45 -04:00
text = "60"
label_settings = SubResource("LabelSettings_kxike")
2023-06-11 15:16:40 -04:00
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 18:06:52 -04:00
volume_db = -10.0
2023-06-11 14:49:51 -04:00
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="."]
2023-06-11 18:06:52 -04:00
wait_time = 5.0
2023-06-11 14:02:32 -04:00
one_shot = true
[node name="tmr_kash" type="Timer" parent="."]
autostart = true