[gd_scene load_steps=28 format=3 uid="uid://b5gb5paiupum"] [ext_resource type="Script" path="res://player/player.cs" id="1_of2l4"] [ext_resource type="PackedScene" uid="uid://2pw0p13lcklv" path="res://buildings/kash_buildings/factory.tscn" id="2_ox06o"] [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"] [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"] [sub_resource type="CameraAttributesPhysical" id="CameraAttributesPhysical_1ejpb"] frustum_near = 0.032 [sub_resource type="LabelSettings" id="LabelSettings_pws5q"] font_size = 28 shadow_size = 5 shadow_color = Color(0, 0, 0, 0.580392) [sub_resource type="Gradient" id="Gradient_g0gsr"] colors = PackedColorArray(0.625134, 0, 0.0234951, 1, 0.409478, 0.173927, 1.44392e-07, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_y5odr"] gradient = SubResource("Gradient_g0gsr") 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"] colors = PackedColorArray(0.533956, 4.45209e-07, 0.129296, 1, 0.902273, 0.0004242, 0.128051, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_d5w6a"] gradient = SubResource("Gradient_dxeak") width = 24 height = 255 [sub_resource type="LabelSettings" id="LabelSettings_xdjlf"] font_color = Color(0, 0, 0, 1) [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"] colors = PackedColorArray(1.44392e-06, 0.334951, 0.24823, 1, 1.8771e-06, 0.766586, 0.320037, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_nfg3s"] gradient = SubResource("Gradient_od2su") width = 24 height = 255 [sub_resource type="LabelSettings" id="LabelSettings_2lyli"] font_color = Color(0, 0, 0, 1) [sub_resource type="LabelSettings" id="LabelSettings_adeuk"] font_size = 15 shadow_size = 10 shadow_color = Color(0, 0, 0, 0.603922) [sub_resource type="LabelSettings" id="LabelSettings_kxike"] font_size = 64 outline_size = 7 outline_color = Color(0, 0, 0, 1) [sub_resource type="SphereMesh" id="SphereMesh_mtv4x"] [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")] attributes = SubResource("CameraAttributesPhysical_1ejpb") script = ExtResource("1_of2l4") _con = NodePath("HUD/Debug info/Label") _mousePosLabel = NodePath("HUD/Debug info/mousePos") _cursorPosLabel = NodePath("HUD/Debug info/cursorPointPos") _cursor = NodePath("cursor") _cursorPoint = NodePath("cursorPoint") _kash_building = ExtResource("2_ox06o") _pr_building = ExtResource("3_j4p3m") _nuke_building = ExtResource("4_2vnif") _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") _timer = NodePath("HUD/Time") _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") _sndChtr = NodePath("snd_Chatter") _sndBtn = NodePath("snd_Button") _tmrChtr = NodePath("tmr_Chatter") _tmrCashGen = NodePath("tmr_kash") _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") [node name="HUD" type="Control" parent="."] layout_mode = 3 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"] visible = false layout_mode = 1 anchors_preset = 0 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 text = "Eat ze caca." [node name="cursorPointPos" type="Label" parent="HUD/Debug info"] layout_mode = 1 offset_top = 60.0 offset_right = 89.0 offset_bottom = 86.0 text = "Eat ze caca." [node name="Label" type="Label" parent="HUD/Debug info"] layout_mode = 1 offset_right = 89.0 offset_bottom = 26.0 text = "Eat ze caca." [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 disabled = true text = "Nuke Enemy" icon = SubResource("GradientTexture2D_y5odr") icon_alignment = 1 expand_icon = true [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 text = "Arms" icon_alignment = 1 expand_icon = true [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 text = "Approval " icon_alignment = 1 expand_icon = true [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 text = "Ka$h" icon_alignment = 1 expand_icon = true [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 rounded = true allow_greater = true allow_lesser = true fill_mode = 3 texture_under = SubResource("GradientTexture2D_2xkee") texture_progress = SubResource("GradientTexture2D_d5w6a") [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") [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 value = 50.0 rounded = true allow_greater = true allow_lesser = true fill_mode = 3 texture_under = SubResource("GradientTexture2D_7myfq") texture_progress = SubResource("GradientTexture2D_kdame") [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") [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 = -79.0 offset_top = -392.0 offset_right = -55.0 offset_bottom = -137.0 grow_horizontal = 0 grow_vertical = 0 max_value = 1000.0 value = 5.0 rounded = true allow_greater = true allow_lesser = true fill_mode = 3 texture_under = SubResource("GradientTexture2D_18k81") texture_progress = SubResource("GradientTexture2D_nfg3s") [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") [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 rotation = 1.5708 text = "ARMS " label_settings = SubResource("LabelSettings_2lyli") horizontal_alignment = 1 vertical_alignment = 1 [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 rotation = 1.5708 text = "PR" label_settings = SubResource("LabelSettings_2lyli") [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 rotation = 1.5708 text = "KA$H" label_settings = SubResource("LabelSettings_2lyli") [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 = -556.0 offset_top = -210.0 offset_right = -132.0 offset_bottom = -135.0 grow_horizontal = 0 grow_vertical = 0 text = "Kash Flow: +2M$/sec. PR: +10%. Mtons: +20. Cost: 6M$. Cost: 5M$. PR: -15%. Cost: 30M$." label_settings = SubResource("LabelSettings_adeuk") [node name="Time" type="Label" parent="HUD"] layout_mode = 1 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 text = "60" label_settings = SubResource("LabelSettings_kxike") [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") skeleton = NodePath("../..") [node name="snd_Chatter" type="AudioStreamPlayer" parent="."] stream = ExtResource("2_sa1qd") volume_db = -10.0 pitch_scale = 0.88 [node name="snd_Button" type="AudioStreamPlayer" parent="."] stream = ExtResource("3_00x5l") [node name="tmr_Chatter" type="Timer" parent="."] wait_time = 5.0 one_shot = true [node name="tmr_kash" type="Timer" parent="."] autostart = true