[gd_scene load_steps=13 format=3 uid="uid://6o4jfv4sjc42"] [ext_resource type="Script" path="res://main.gd" id="1_git68"] [ext_resource type="PackedScene" uid="uid://bl4b5g1o8ud5y" path="res://player.tscn" id="1_qvjem"] [ext_resource type="PackedScene" uid="uid://h2hapmuai55b" path="res://mob.tscn" id="2_oiwul"] [ext_resource type="FontFile" uid="uid://d1r2cqlplg2wb" path="res://fonts/Montserrat-Medium.ttf" id="4_o3155"] [ext_resource type="Script" path="res://ScoreLabel.gd" id="5_y0lvi"] [ext_resource type="Script" path="res://FPS.gd" id="6_jdbnj"] [sub_resource type="BoxShape3D" id="BoxShape3D_jiv4h"] size = Vector3(60, 2, 60) [sub_resource type="BoxMesh" id="BoxMesh_vamix"] size = Vector3(60, 2, 60) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1f85g"] albedo_color = Color(0.968627, 0.545098, 0, 1) [sub_resource type="CylinderMesh" id="CylinderMesh_1gwnh"] material = SubResource("StandardMaterial3D_1f85g") [sub_resource type="Curve3D" id="Curve3D_476rq"] _data = { "points": PackedVector3Array(0, 0, 0, 0, 0, 0, -13.6297, 0, -15.0268, 0, 0, 0, 0, 0, 0, 13.2382, 0, -15.2266, 0, 0, 0, 0, 0, 0, 13.2382, 0, 15.3369, 0, 0, 0, 0, 0, 0, -13.6297, 0, 14.9374, 0, 0, 0, 0, 0, 0, -13.6297, 0, -15.0268), "tilts": PackedFloat32Array(0, 0, 0, 0, 0) } point_count = 5 [sub_resource type="Theme" id="Theme_eyu2y"] default_font = ExtResource("4_o3155") default_font_size = 22 [node name="Main" type="Node"] script = ExtResource("1_git68") mob_scene = ExtResource("2_oiwul") [node name="Ground" type="StaticBody3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) collision_layer = 4 collision_mask = 0 [node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"] shape = SubResource("BoxShape3D_jiv4h") [node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"] mesh = SubResource("BoxMesh_vamix") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 26.3214, 0) shadow_enabled = true [node name="Player" parent="." instance=ExtResource("1_qvjem")] [node name="CameraPivot" type="Marker3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 19, 19) [node name="Camera3D" type="Camera3D" parent="CameraPivot"] projection = 1 size = 19.0 [node name="Cylinders" type="Node3D" parent="."] [node name="MeshInstance3D" type="MeshInstance3D" parent="Cylinders"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.358, 0, -14.8422) mesh = SubResource("CylinderMesh_1gwnh") [node name="MeshInstance3D2" type="MeshInstance3D" parent="Cylinders"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.3652, 0, 15.5517) mesh = SubResource("CylinderMesh_1gwnh") [node name="MeshInstance3D3" type="MeshInstance3D" parent="Cylinders"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.4386, 0, -14.9891) mesh = SubResource("CylinderMesh_1gwnh") [node name="MeshInstance3D4" type="MeshInstance3D" parent="Cylinders"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.358, 0, 15.1847) mesh = SubResource("CylinderMesh_1gwnh") [node name="SpawnPath" type="Path3D" parent="."] curve = SubResource("Curve3D_476rq") [node name="SpawnLocation" type="PathFollow3D" parent="SpawnPath"] transform = Transform3D(0.00743615, 0, -0.999971, 0, 1, 0, 0.999971, 0, 0.00743615, -13.6297, 0, -15.0268) [node name="MobTimer" type="Timer" parent="."] wait_time = 0.5 autostart = true [node name="UserInterface" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = SubResource("Theme_eyu2y") [node name="Retry" type="ColorRect" parent="UserInterface"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 0.392157) [node name="Label" type="Label" parent="UserInterface/Retry"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -106.5 offset_top = -14.0 offset_right = 106.5 offset_bottom = 14.0 grow_horizontal = 2 grow_vertical = 2 text = "Press Enter to retry" [node name="ScoreLabel" type="Label" parent="UserInterface"] layout_mode = 0 offset_left = 38.0 offset_top = 29.0 offset_right = 99.0 offset_bottom = 52.0 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "Score: 0" script = ExtResource("5_y0lvi") [node name="FPS" type="Label" parent="UserInterface"] layout_mode = 0 offset_left = 610.0 offset_top = 22.0 offset_right = 654.0 offset_bottom = 50.0 theme_override_colors/font_color = Color(0, 0, 0, 1) text = "FPS" script = ExtResource("6_jdbnj") [connection signal="hit" from="Player" to="." method="_on_player_hit"] [connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]