[gd_scene load_steps=27 format=3 uid="uid://boafwu4sqa6pq"] [ext_resource type="Texture2D" uid="uid://dmsqpy4u3h023" path="res://assets/textures/dirt_ground_texture__tileable___2048x2048__by_fabooguy_d7aopi7-414w-2x.jpg" id="1_1xb3k"] [ext_resource type="Script" path="res://scripts/player.gd" id="1_wet1s"] [ext_resource type="PackedScene" uid="uid://dslxb3psx30vp" path="res://assets/gun.tscn" id="3_1j4dw"] [ext_resource type="Script" path="res://scripts/AmmoCounter.gd" id="4_hx0he"] [ext_resource type="FontFile" uid="uid://d2h2tjhxiv5wo" path="res://assets/fonts/White On Black.ttf" id="4_nyae3"] [ext_resource type="Script" path="res://scripts/StaminaCounter.gd" id="5_xst25"] [ext_resource type="PackedScene" uid="uid://bbxibqxuiyqic" path="res://assets/stamina_pickup.tscn" id="6_j3hau"] [ext_resource type="Script" path="res://scripts/PickupAnnounce.gd" id="6_krsyt"] [ext_resource type="PackedScene" uid="uid://bmbv6ujc00jhk" path="res://assets/ammo_pickup.tscn" id="7_sm6sr"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_vhrjs"] sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) [sub_resource type="Sky" id="Sky_lms8h"] sky_material = SubResource("ProceduralSkyMaterial_vhrjs") [sub_resource type="Environment" id="Environment_kmm3u"] background_mode = 2 sky = SubResource("Sky_lms8h") tonemap_mode = 2 glow_enabled = true glow_intensity = 1.45 glow_bloom = 0.16 volumetric_fog_enabled = true volumetric_fog_density = 0.02 adjustment_enabled = true [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xplg5"] albedo_color = Color(0.480998, 0.580389, 0.349964, 1) albedo_texture = ExtResource("1_1xb3k") uv1_triplanar = true [sub_resource type="CapsuleMesh" id="CapsuleMesh_n7uf3"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ko22d"] radius = 1.0 [sub_resource type="LabelSettings" id="LabelSettings_n0odj"] font = ExtResource("4_nyae3") font_size = 70 [sub_resource type="LabelSettings" id="LabelSettings_ic2ps"] font = ExtResource("4_nyae3") font_size = 150 [sub_resource type="Animation" id="Animation_i1swh"] resource_name = "picked_up" length = 0.94 step = 0.01 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.05, 0.9, 0.94), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 1, "values": [false, true, true, false] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath(".:position") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0.05, 0.14, 0.24, 0.45, 0.59, 0.79, 0.94), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1), "update": 0, "values": [Vector2(0, 0), Vector2(6.59, 3.78), Vector2(13.775, -1.865), Vector2(-3.81, 4.075), Vector2(3.11, -4.57), Vector2(5.07, -4.6), Vector2(2.45, -4.125)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_vaspv"] _data = { "picked_up": SubResource("Animation_i1swh") } [sub_resource type="BoxMesh" id="BoxMesh_jy68j"] size = Vector3(2, 0.25, 2) [sub_resource type="BoxShape3D" id="BoxShape3D_0v1qn"] size = Vector3(2, 0.25, 2) [sub_resource type="Animation" id="Animation_vwe51"] resource_name = "platform1" length = 7.0 loop_mode = 2 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(2, 7), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Vector3(4.28269, 0, 0), Vector3(13.1531, 7.28057, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_f1t1e"] _data = { "platform1": SubResource("Animation_vwe51") } [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3sue4"] albedo_color = Color(0.461375, 0.23729, 0.129985, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_die83"] albedo_color = Color(0.133607, 0.303288, 0.210175, 1) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1ua5b"] albedo_color = Color(0.623185, 0.303904, 3.85046e-07, 1) [node name="World" type="Node3D"] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0) shadow_enabled = true [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_kmm3u") [node name="CSGBox3D" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0227966, -0.363281, 0) use_collision = true collision_layer = 3 collision_mask = 3 size = Vector3(100, 0.25, 100) material = SubResource("StandardMaterial3D_xplg5") [node name="Player" type="CharacterBody3D" parent="." groups=["player"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0) collision_layer = 3 script = ExtResource("1_wet1s") [node name="MeshInstance3D" type="MeshInstance3D" parent="Player"] visible = false mesh = SubResource("CapsuleMesh_n7uf3") [node name="CollisionShape3D" type="CollisionShape3D" parent="Player"] shape = SubResource("CapsuleShape3D_ko22d") [node name="Head" type="Node3D" parent="Player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.894364, 0) [node name="Camera3D" type="Camera3D" parent="Player/Head"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0341401, 0.111267) [node name="gun" parent="Player/Head/Camera3D" instance=ExtResource("3_1j4dw")] transform = Transform3D(1, 0.000244406, 0.000376276, -0.000244174, 1, -0.000665815, -0.000376426, 0.00066573, 1, 0.264358, -0.49, -1.03454) [node name="AmmoCounter" type="Label" parent="Player/Head/Camera3D"] offset_right = 3440.0 offset_bottom = 1440.0 size_flags_horizontal = 3 size_flags_vertical = 6 text = "Ammo: X" label_settings = SubResource("LabelSettings_n0odj") horizontal_alignment = 2 vertical_alignment = 2 script = ExtResource("4_hx0he") [node name="PickupAnnounce" type="Label" parent="Player/Head/Camera3D"] visible = false offset_left = 2.45 offset_top = -4.125 offset_right = 3442.45 offset_bottom = 1435.88 size_flags_horizontal = 3 size_flags_vertical = 6 text = "TEXT HERE" label_settings = SubResource("LabelSettings_ic2ps") horizontal_alignment = 1 vertical_alignment = 1 script = ExtResource("6_krsyt") [node name="AnimationPlayer" type="AnimationPlayer" parent="Player/Head/Camera3D/PickupAnnounce"] libraries = { "": SubResource("AnimationLibrary_vaspv") } [node name="StaminaCounter" type="Label" parent="Player/Head/Camera3D"] offset_left = 2.0 offset_top = 2.0 offset_right = 3442.0 offset_bottom = 1360.0 size_flags_horizontal = 3 size_flags_vertical = 6 text = "Ammo: X" label_settings = SubResource("LabelSettings_n0odj") horizontal_alignment = 2 vertical_alignment = 2 script = ExtResource("5_xst25") [node name="pick_up_detection" type="Area3D" parent="Player"] collision_layer = 0 collision_mask = 4 [node name="CollisionShape3D2" type="CollisionShape3D" parent="Player/pick_up_detection"] shape = SubResource("CapsuleShape3D_ko22d") [node name="StaticBody3D" type="StaticBody3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.28269, 0, 0) [node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"] mesh = SubResource("BoxMesh_jy68j") [node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"] shape = SubResource("BoxShape3D_0v1qn") [node name="AnimationPlayer" type="AnimationPlayer" parent="StaticBody3D"] libraries = { "": SubResource("AnimationLibrary_f1t1e") } autoplay = "platform1" [node name="CSGBox3D2" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.08767, 0.216949, 0) use_collision = true [node name="CSGBox3D3" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.26223, 0.845713, 0) use_collision = true [node name="CSGBox3D4" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.4661, 1.4843, 0) use_collision = true [node name="CSGBox3D5" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.99997, 0.00767937, 0, -0.00767937, 0.99997, -17.3205, 0.71129, 1.7802) use_collision = true collision_layer = 3 collision_mask = 3 size = Vector3(19.9512, 2.93347, 14.6929) material = SubResource("StandardMaterial3D_3sue4") [node name="CSGBox3D6" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -32.4685, 1.6873, 6.54043) use_collision = true collision_layer = 3 collision_mask = 3 size = Vector3(19.9512, 4.8855, 14.6929) material = SubResource("StandardMaterial3D_die83") [node name="CSGBox3D8" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 49.9417, 4.66075, 1.14554) use_collision = true size = Vector3(1.60046, 10.8324, 102.191) material = SubResource("StandardMaterial3D_die83") [node name="CSGBox3D9" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -49.4664, 4.66075, 1.14554) use_collision = true size = Vector3(1.60046, 10.8324, 102.191) material = SubResource("StandardMaterial3D_die83") [node name="CSGBox3D10" type="CSGBox3D" parent="."] transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 1.91864, 4.66075, -50.1316) use_collision = true size = Vector3(1.60046, 10.8324, 102.191) material = SubResource("StandardMaterial3D_die83") [node name="CSGBox3D11" type="CSGBox3D" parent="."] transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.236454, 4.66075, 49.7881) use_collision = true size = Vector3(1.60046, 10.8324, 102.191) material = SubResource("StandardMaterial3D_die83") [node name="CSGBox3D7" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -22.9215, 2.56212, 19.2185) use_collision = true collision_layer = 3 collision_mask = 3 size = Vector3(19.9512, 6.63513, 14.6929) material = SubResource("StandardMaterial3D_1ua5b") [node name="StaminaPickup" parent="." instance=ExtResource("6_j3hau")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.7936, 6.15076, -7.93648) [node name="StaminaPickup4" parent="." instance=ExtResource("6_j3hau")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.0069, 6.15076, 0.199988) [node name="StaminaPickup2" parent="." instance=ExtResource("6_j3hau")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -22.8378, 7.46482, 16.2581) [node name="StaminaPickup3" parent="." instance=ExtResource("6_j3hau")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -31.7331, 7.46482, 2.4054) [node name="GameManager" type="Node" parent="."] [node name="stamina_pickup" parent="." instance=ExtResource("7_sm6sr")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 3, -17) [connection signal="tree_entered" from="Player" to="Player" method="_on_tree_entered"] [connection signal="body_entered" from="Player/pick_up_detection" to="Player" method="_on_pick_up_detection_body_entered"]