[gd_scene load_steps=30 format=3 uid="uid://cjdpydcvdihhn"] [ext_resource type="Script" path="res://Scripts/City.gd" id="1_7h1gg"] [ext_resource type="PackedScene" uid="uid://b0co3ivqa72jb" path="res://Scenes/Gameplay/Houses/house1.tscn" id="3_djmtb"] [ext_resource type="PackedScene" uid="uid://c46e6vwcih3va" path="res://Scenes/Gameplay/Houses/house2.tscn" id="4_u4llr"] [ext_resource type="PackedScene" uid="uid://dndd7y5iwnrp1" path="res://Scenes/Gameplay/Houses/house0.tscn" id="4_w4f0e"] [ext_resource type="PackedScene" uid="uid://cve0v31o0a08d" path="res://Scenes/Gameplay/sleigh.tscn" id="5_t17ek"] [ext_resource type="Theme" uid="uid://kp44uy5twt4a" path="res://Theme/title.tres" id="7_38owx"] [ext_resource type="Script" path="res://Scripts/AudioLoop.gd" id="7_liw2b"] [ext_resource type="Script" path="res://Scripts/Speedometer.gd" id="8_4uqhx"] [ext_resource type="Script" path="res://Scripts/UI.gd" id="8_pw13g"] [ext_resource type="PackedScene" uid="uid://chlwqlstdkipj" path="res://Scenes/Gameplay/ChimneyGame.tscn" id="8_xj7pd"] [ext_resource type="Shader" path="res://Shaders/Transition.gdshader" id="9_4pqiw"] [ext_resource type="Texture2D" uid="uid://ce71cra47qwow" path="res://Sprites/Speedometer/speedometer.png" id="9_j36lr"] [ext_resource type="Texture2D" uid="uid://108yroukicih" path="res://Sprites/Speedometer/needle.png" id="11_8w7gn"] [ext_resource type="Texture2D" uid="uid://r5bx62f67r8d" path="res://Sprites/arrow.png" id="12_lo6x8"] [ext_resource type="AudioStream" uid="uid://43rniv0ux3l0" path="res://Sounds/Effects/Christmas Sound Effects #1 (by MrSnooze)/003 santa claus_ho ho ho.wav" id="12_vdho5"] [ext_resource type="AudioStream" uid="uid://btmpesuouybvx" path="res://Sounds/Effects/Christmas Sound Effects #1 (by MrSnooze)/015 snowball.wav" id="13_jaqd6"] [ext_resource type="AudioStream" uid="uid://bq760luq8xifb" path="res://Sounds/Music/Faster_Version-2023-08-25_-_Soaring_Sleighride_-_www.FesliyanStudios.com.wav" id="16_8p3i0"] [ext_resource type="Script" path="res://Scripts/WindSound.gd" id="16_agxud"] [ext_resource type="AudioStream" uid="uid://bal44tdgmt2vy" path="res://Sounds/Effects/Christmas Sound Effects #1 (by MrSnooze)/012 wind (moderate, strong).wav" id="17_j2hot"] [ext_resource type="AudioStream" uid="uid://0cotty5mr0pn" path="res://Sounds/Effects/Christmas Sound Effects #1 (by MrSnooze)/002 wind blowing.wav" id="18_7xbm2"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_wd572"] sky_top_color = Color(0.015579, 0.153036, 0.22919, 1) sky_horizon_color = Color(0.0320734, 0.22158, 0.324079, 1) ground_bottom_color = Color(0.0313726, 0.223529, 0.32549, 1) ground_horizon_color = Color(0.0313726, 0.223529, 0.32549, 1) [sub_resource type="Sky" id="Sky_tn0ym"] sky_material = SubResource("ProceduralSkyMaterial_wd572") [sub_resource type="Environment" id="Environment_tkovf"] background_mode = 2 sky = SubResource("Sky_tn0ym") ambient_light_source = 3 ambient_light_color = Color(0, 0.305882, 0.447059, 1) ambient_light_sky_contribution = 0.0 ambient_light_energy = 0.3 glow_enabled = true fog_enabled = true fog_mode = 1 fog_light_color = Color(0.0313726, 0.223529, 0.32549, 1) fog_density = 1.0 fog_depth_begin = 150.0 fog_depth_end = 500.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vfn8f"] [sub_resource type="QuadMesh" id="QuadMesh_tgs7q"] material = SubResource("StandardMaterial3D_vfn8f") size = Vector2(800, 800) orientation = 1 [sub_resource type="ShaderMaterial" id="ShaderMaterial_lce0s"] shader = ExtResource("9_4pqiw") shader_parameter/useTexture = false shader_parameter/progress = 0.0 shader_parameter/color = null [sub_resource type="Animation" id="Animation_txa3m"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Transitioner:material:shader_parameter/progress") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0.0] } [sub_resource type="Animation" id="Animation_lnftr"] resource_name = "fadeOut" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Transitioner:material:shader_parameter/progress") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [0.0, 1.0] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_8hlon"] _data = { "RESET": SubResource("Animation_txa3m"), "fadeOut": SubResource("Animation_lnftr") } [node name="City" type="Node3D" node_paths=PackedStringArray("animator", "ui", "hohoPlayer", "badPlayer")] script = ExtResource("1_7h1gg") animator = NodePath("AnimationPlayer") ui = NodePath("UI") hohoPlayer = NodePath("UI/PresentAnnouncement/HoHoHo") badPlayer = NodePath("UI/PresentAnnouncement/BadBoi") houses = Array[PackedScene]([ExtResource("4_w4f0e"), ExtResource("3_djmtb"), ExtResource("4_u4llr")]) columns = 6 rows = 5 blockLength = 13.0 [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_tkovf") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(0.95035, 0.185295, 0.25, -0.185295, -0.308469, 0.933013, 0.25, -0.933013, -0.258819, 0, 209, 0) light_color = Color(0.843137, 1, 1, 1) light_energy = 0.05 [node name="Sleigh" parent="." instance=ExtResource("5_t17ek")] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 77, 0) baseSpeed = 50.0 [node name="MeshInstance3D" type="MeshInstance3D" parent="Sleigh"] transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -3.11225e-05, -77, 356) visible = false mesh = SubResource("QuadMesh_tgs7q") skeleton = NodePath("../..") [node name="Neighborhood" type="Node3D" parent="."] [node name="Rings" type="Node3D" parent="."] [node name="ChimneyGame" parent="." instance=ExtResource("8_xj7pd")] [node name="UI" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 1 theme = ExtResource("7_38owx") script = ExtResource("8_pw13g") [node name="Speedometer" type="TextureRect" parent="UI"] layout_mode = 1 offset_right = 95.0 offset_bottom = 93.0 texture = ExtResource("9_j36lr") expand_mode = 1 stretch_mode = 5 script = ExtResource("8_4uqhx") [node name="Needle" type="TextureRect" parent="UI/Speedometer"] layout_mode = 1 anchors_preset = 13 anchor_left = 0.5 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -32.6289 offset_top = -10.1812 offset_right = 32.3711 offset_bottom = 13.8188 grow_horizontal = 2 grow_vertical = 2 rotation = -1.5708 pivot_offset = Vector2(32.0684, 70.4317) texture = ExtResource("11_8w7gn") expand_mode = 1 stretch_mode = 5 [node name="PresentAnnouncement" type="RichTextLabel" parent="UI"] layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -244.0 offset_top = 38.0 offset_right = 244.0 offset_bottom = 109.0 grow_horizontal = 2 pivot_offset = Vector2(244, 35) theme_override_colors/default_color = Color(0.666667, 0, 0, 1) theme_override_font_sizes/normal_font_size = 48 bbcode_enabled = true text = "[center]Present Delivered[/center]" [node name="HoHoHo" type="AudioStreamPlayer" parent="UI/PresentAnnouncement"] stream = ExtResource("12_vdho5") bus = &"Effects" [node name="BadBoi" type="AudioStreamPlayer" parent="UI/PresentAnnouncement"] stream = ExtResource("13_jaqd6") bus = &"Effects" [node name="TimerText" type="RichTextLabel" parent="UI"] layout_mode = 1 anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -231.0 offset_top = 6.0 offset_right = -10.0 offset_bottom = 75.0 grow_horizontal = 0 theme_override_colors/default_color = Color(0.665604, 3.60981e-08, 6.257e-07, 1) theme_override_font_sizes/normal_font_size = 32 bbcode_enabled = true text = "[right]5:00[/right]" [node name="Timer" type="Timer" parent="UI"] wait_time = 300.0 one_shot = true autostart = true [node name="GameFinish" type="Control" parent="UI"] visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="RichTextLabel" type="RichTextLabel" parent="UI/GameFinish"] layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -288.0 offset_top = 101.0 offset_right = 288.0 offset_bottom = 174.0 grow_horizontal = 2 theme_override_colors/default_color = Color(0.666667, 0, 0, 1) theme_override_font_sizes/normal_font_size = 48 bbcode_enabled = true text = "[center]Time Is Up[/center]" [node name="RichTextLabel2" type="RichTextLabel" parent="UI/GameFinish"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -265.0 offset_top = -52.0 offset_right = 265.0 offset_bottom = 52.0 grow_horizontal = 2 grow_vertical = 2 theme_override_colors/default_color = Color(0.666667, 0, 0, 1) bbcode_enabled = true text = "[center]Your Score: X[/center]" [node name="Back" type="Button" parent="UI/GameFinish"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -59.5 offset_top = 52.0 offset_right = 59.5 offset_bottom = 92.0 grow_horizontal = 2 grow_vertical = 2 theme_override_colors/font_color = Color(0.666667, 0, 0, 1) text = "Main Menu" [node name="Compass" type="Control" parent="UI"] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -129.0 offset_top = -102.0 offset_right = 129.0 grow_horizontal = 2 grow_vertical = 0 [node name="RichTextLabel" type="RichTextLabel" parent="UI/Compass"] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = -67.0 grow_horizontal = 2 grow_vertical = 0 theme_override_colors/default_color = Color(0.666667, 0, 0, 1) bbcode_enabled = true text = "[center]Next Delivery in XX Belly Bounces[/center]" [node name="TextureRect2" type="TextureRect" parent="UI/Compass"] modulate = Color(0, 1, 0, 1) layout_mode = 1 anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -46.0 offset_right = 46.0 offset_bottom = 44.0 grow_horizontal = 2 pivot_offset = Vector2(46, 22) texture = ExtResource("12_lo6x8") expand_mode = 1 stretch_mode = 5 [node name="Streak" type="Control" parent="UI"] visible = false layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 10.0 offset_top = -252.0 offset_right = 105.0 offset_bottom = -166.0 grow_vertical = 2 [node name="Count" type="RichTextLabel" parent="UI/Streak"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_colors/default_color = Color(0.666667, 0, 0, 1) theme_override_font_sizes/normal_font_size = 56 text = "13" [node name="StreakLabel" type="RichTextLabel" parent="UI/Streak"] layout_mode = 0 offset_left = 8.0 offset_top = 72.0 offset_right = 104.0 offset_bottom = 106.0 rotation = -0.445965 theme_override_colors/default_color = Color(0.666667, 0, 0, 1) text = "Streak!" [node name="Transitioner" type="ColorRect" parent="."] material = SubResource("ShaderMaterial_lce0s") anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_8hlon") } [node name="Music" type="AudioStreamPlayer" parent="."] stream = ExtResource("16_8p3i0") autoplay = true bus = &"Music" script = ExtResource("7_liw2b") [node name="Wind" type="Node" parent="."] script = ExtResource("16_agxud") slowSound = ExtResource("17_j2hot") fastSound = ExtResource("18_7xbm2") [node name="Slow" type="AudioStreamPlayer" parent="Wind"] bus = &"Ambiance" [node name="Fast" type="AudioStreamPlayer" parent="Wind"] bus = &"Ambiance" [connection signal="timeout" from="UI/Timer" to="." method="_on_timer_timeout"] [connection signal="timeout" from="UI/Timer" to="UI" method="_on_timer_timeout"] [connection signal="pressed" from="UI/GameFinish/Back" to="." method="_on_back_pressed"] [connection signal="finished" from="Wind/Slow" to="Wind" method="_on_slow_finished"] [connection signal="finished" from="Wind/Fast" to="Wind" method="_on_fast_finished"]