Final touches

This commit is contained in:
2024-06-12 17:51:29 +02:00
parent 9cfd9e0200
commit 965a56c7ad
8 changed files with 120 additions and 77 deletions

View File

@@ -1,10 +1,11 @@
[gd_scene load_steps=12 format=3 uid="uid://6o4jfv4sjc42"]
[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)
@@ -79,7 +80,7 @@ mesh = SubResource("CylinderMesh_1gwnh")
curve = SubResource("Curve3D_476rq")
[node name="SpawnLocation" type="PathFollow3D" parent="SpawnPath"]
transform = Transform3D(0.0074346, 0, -0.999971, 0, 1, 0, 0.999971, 0, 0.0074346, -13.6297, 0, -15.0268)
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
@@ -94,16 +95,6 @@ grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_eyu2y")
[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="Retry" type="ColorRect" parent="UserInterface"]
layout_mode = 1
anchors_preset = 15
@@ -128,5 +119,25 @@ 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"]