[gd_scene load_steps=23 format=3 uid="uid://d0ymn6u246bv2"] [ext_resource type="Script" path="res://scripts/player.gd" id="1_rvwhc"] [ext_resource type="PackedScene" uid="uid://c0e27836xgmhi" path="res://prefabs/character_prefab.tscn" id="2_g2iyx"] [ext_resource type="Texture2D" uid="uid://8ggihh27mlrr" path="res://sprites/blob-shadow.png" id="3_gq1fq"] [ext_resource type="ArrayMesh" uid="uid://deu06eho4c74" path="res://prefabs/cloud.res" id="4_dxhne"] [ext_resource type="Script" path="res://scripts/view.gd" id="5_bg0fr"] [ext_resource type="AudioStream" uid="uid://ddiy2lbypiwqv" path="res://audio/walking.ogg" id="5_wfvi2"] [ext_resource type="PackedScene" uid="uid://cnymdajj1vsqm" path="res://prefabs/platform_prefab.tscn" id="6_sdmev"] [ext_resource type="PackedScene" uid="uid://rjh4ifidqrfp" path="res://prefabs/platform_medium_prefab.tscn" id="7_ixpj3"] [ext_resource type="PackedScene" uid="uid://uqr4hswv6d2g" path="res://prefabs/platform_grass_large_round_prefab.tscn" id="8_4oh1e"] [ext_resource type="PackedScene" uid="uid://dtjvjdjl8cs6e" path="res://models/flag.glb" id="9_fw1f5"] [ext_resource type="PackedScene" uid="uid://dfpisimsgf5ce" path="res://prefabs/coin_prefab.tscn" id="10_fwhys"] [ext_resource type="Script" path="res://scripts/hud.gd" id="11_apvpm"] [ext_resource type="FontFile" uid="uid://d0cxd77jybrcn" path="res://fonts/lilita-one-regular.ttf" id="11_dkqcs"] [ext_resource type="Texture2D" uid="uid://cd7oyc56ehkx1" path="res://sprites/coin.png" id="13_jfda3"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_iakcd"] 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_nhnet"] sky_material = SubResource("ProceduralSkyMaterial_iakcd") [sub_resource type="Environment" id="Environment_kt478"] background_mode = 1 background_color = Color(0.611765, 0.643137, 0.717647, 1) sky = SubResource("Sky_nhnet") ambient_light_source = 2 ambient_light_color = Color(0.662745, 0.694118, 0.772549, 1) ambient_light_energy = 1.15 tonemap_mode = 2 ssao_enabled = true ssao_radius = 0.45 ssao_intensity = 1.0 ssao_power = 15.0 glow_enabled = true glow_levels/2 = 0.6 glow_levels/3 = 0.6 glow_levels/5 = 0.0 glow_intensity = 2.0 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gdq8c"] radius = 0.3 height = 1.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_q7stj"] diffuse_mode = 2 specular_mode = 2 metallic_specular = 0.0 backlight = Color(0, 0.521569, 0.709804, 1) billboard_keep_scale = true grow_amount = 1.882 proximity_fade_distance = 0.25 [sub_resource type="Curve" id="Curve_xh1e2"] _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.249284, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] point_count = 3 [sub_resource type="BoxShape3D" id="BoxShape3D_bxyhw"] size = Vector3(30, 1, 30) [sub_resource type="LabelSettings" id="LabelSettings_38ys3"] font = ExtResource("11_dkqcs") font_size = 48 shadow_color = Color(0, 0, 0, 0.376471) shadow_offset = Vector2(2, 2) [node name="Main" type="Node3D"] [node name="Environment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_kt478") [node name="Player" type="CharacterBody3D" parent="." node_paths=PackedStringArray("view")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) script = ExtResource("1_rvwhc") view = NodePath("../View") [node name="Collider" type="CollisionShape3D" parent="Player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 0) shape = SubResource("CapsuleShape3D_gdq8c") [node name="Character" parent="Player" instance=ExtResource("2_g2iyx")] [node name="leg-left" parent="Player/Character/character2/root" index="0"] transform = Transform3D(0.965926, 0, 0.258819, 0, 1, 0, -0.258819, 0, 0.965926, 0.125, 0.17625, -0.02375) [node name="leg-right" parent="Player/Character/character2/root" index="1"] transform = Transform3D(0.965926, 0, -0.258819, 0, 1, 0, 0.258819, 0, 0.965926, -0.125, 0.17625, -0.02375) [node name="torso" parent="Player/Character/character2/root" index="2"] transform = Transform3D(1, 0, 0, 0, 0.996195, 0.0871557, 0, -0.0871557, 0.996195, -1.80478e-15, 0.17625, -0.02375) [node name="arm-left" parent="Player/Character/character2/root/torso" index="0"] transform = Transform3D(0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0, 1, 0.3, 0.2, 0) [node name="arm-right" parent="Player/Character/character2/root/torso" index="1"] transform = Transform3D(0.707107, -0.707107, 0, 0.707107, 0.707107, 0, 0, 0, 1, -0.3, 0.1445, 0) [node name="Shadow" type="Decal" parent="Player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.9, 0) size = Vector3(1, 2, 1) texture_albedo = ExtResource("3_gq1fq") modulate = Color(1, 1, 1, 0.705882) normal_fade = 0.5 [node name="ParticlesTrail" type="CPUParticles3D" parent="Player"] material_override = SubResource("StandardMaterial3D_q7stj") cast_shadow = 0 amount = 60 mesh = ExtResource("4_dxhne") emission_shape = 1 emission_sphere_radius = 0.2 particle_flag_align_y = true direction = Vector3(0, 0, 0) gravity = Vector3(0, 0.1, 0) scale_amount_min = 0.75 scale_amount_curve = SubResource("Curve_xh1e2") [node name="SoundFootsteps" type="AudioStreamPlayer" parent="Player"] stream = ExtResource("5_wfvi2") volume_db = -5.0 pitch_scale = 1.25 autoplay = true [node name="View" type="Node3D" parent="." node_paths=PackedStringArray("target")] transform = Transform3D(0.707107, -0.298836, 0.640856, 0, 0.906308, 0.422618, -0.707107, -0.298836, 0.640856, 0, 0, 0) script = ExtResource("5_bg0fr") target = NodePath("../Player") [node name="Camera" type="Camera3D" parent="View"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10) current = true fov = 40.0 [node name="World" type="Node3D" parent="."] [node name="platform" parent="World" instance=ExtResource("6_sdmev")] transform = Transform3D(0.993085, 0, -0.117399, 0, 1, 0, 0.117399, 0, 0.993085, 0, 0, 0) [node name="platform2" parent="World" instance=ExtResource("6_sdmev")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 2, -3) [node name="platform3" parent="World" instance=ExtResource("6_sdmev")] transform = Transform3D(0.966237, 0, -0.257656, 0, 1, 0, 0.257656, 0, 0.966237, -3, 3, -5) [node name="platform-medium" parent="World" instance=ExtResource("7_ixpj3")] transform = Transform3D(0.996134, 0, 0.0878512, 0, 1, 0, -0.0878512, 0, 0.996134, -3, 0, 0) [node name="platform-medium2" parent="World" instance=ExtResource("7_ixpj3")] transform = Transform3D(0.995121, 0, 0.0986598, 0, 1, 0, -0.0986598, 0, 0.995121, -5, 0, 4) [node name="platform-medium3" parent="World" instance=ExtResource("7_ixpj3")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, -6) [node name="platform-grass-large-round" parent="World" instance=ExtResource("8_4oh1e")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, 1, -2) [node name="flag" parent="World" instance=ExtResource("9_fw1f5")] transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 0, 3.48077, -6) [node name="coin" parent="World" instance=ExtResource("10_fwhys")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0.635, 0) [node name="coin2" parent="World" instance=ExtResource("10_fwhys")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.0437, 1.97005, -0.33003) [node name="coin3" parent="World" instance=ExtResource("10_fwhys")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.0437, 1.97005, -1.33003) [node name="coin4" parent="World" instance=ExtResource("10_fwhys")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.0437, 1.97005, -2.33003) [node name="respawn" type="Area3D" parent="World"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, -15, 2.08165e-12) [node name="CollisionShape3D" type="CollisionShape3D" parent="World/respawn"] shape = SubResource("BoxShape3D_bxyhw") [node name="Sun" type="DirectionalLight3D" parent="."] transform = Transform3D(-0.422618, -0.694272, 0.582563, 0, 0.642788, 0.766044, -0.906308, 0.323744, -0.271654, 0, 0, 0) shadow_enabled = true shadow_opacity = 0.75 [node name="HUD" type="CanvasLayer" parent="."] script = ExtResource("11_apvpm") [node name="Icon" type="TextureRect" parent="HUD"] offset_left = 57.0 offset_top = 67.0 offset_right = 313.0 offset_bottom = 323.0 scale = Vector2(0.2, 0.2) texture = ExtResource("13_jfda3") [node name="x" type="Label" parent="HUD"] offset_left = 112.0 offset_top = 64.0 offset_right = 144.0 offset_bottom = 123.0 text = "×" label_settings = SubResource("LabelSettings_38ys3") [node name="Coins" type="Label" parent="HUD"] offset_left = 144.0 offset_top = 64.0 offset_right = 368.0 offset_bottom = 123.0 text = "0" label_settings = SubResource("LabelSettings_38ys3") [connection signal="coin_collected" from="Player" to="HUD" method="_on_coin_collected"] [connection signal="body_entered" from="World/respawn" to="Player" method="_on_respawn_body_entered"] [editable path="Player/Character"]