Tutorial finished
This commit is contained in:
54
main.tscn
54
main.tscn
@@ -1,8 +1,10 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://6o4jfv4sjc42"]
|
||||
[gd_scene load_steps=12 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"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jiv4h"]
|
||||
size = Vector3(60, 2, 60)
|
||||
@@ -23,6 +25,10 @@ _data = {
|
||||
}
|
||||
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")
|
||||
@@ -73,10 +79,54 @@ mesh = SubResource("CylinderMesh_1gwnh")
|
||||
curve = SubResource("Curve3D_476rq")
|
||||
|
||||
[node name="SpawnLocation" type="PathFollow3D" parent="SpawnPath"]
|
||||
transform = Transform3D(0.00743461, 0, -0.999972, 0, 1, 0, 0.999972, 0, 0.00743461, -13.6297, 0, -15.0268)
|
||||
transform = Transform3D(0.0074346, 0, -0.999971, 0, 1, 0, 0.999971, 0, 0.0074346, -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="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
|
||||
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"
|
||||
|
||||
[connection signal="hit" from="Player" to="." method="_on_player_hit"]
|
||||
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user