Skip to content

Commit

Permalink
develop name display
Browse files Browse the repository at this point in the history
  • Loading branch information
umutucak committed Jun 17, 2024
1 parent 2d3f49f commit 92564cb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config_version=5
config/name="Loop King"
run/main_scene="res://scenes/main_menu.tscn"
config/features=PackedStringArray("4.2", "Forward Plus")
config/icon="res://icon.svg"
config/icon="res://assets/logo.PNG"

[dotnet]

Expand Down
2 changes: 1 addition & 1 deletion scenes/final_cutscene.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=40 format=3 uid="uid://cwrfgjs48vff0"]
[gd_scene load_steps=41 format=3 uid="uid://cwrfgjs48vff0"]

[ext_resource type="Texture2D" uid="uid://b03fbg8swxqv8" path="res://assets/vroom.png" id="1_qu3iu"]
[ext_resource type="Texture2D" uid="uid://cemdyukuhq3jp" path="res://assets/hit-spritesheed.png" id="2_gwprq"]
Expand Down
9 changes: 9 additions & 0 deletions scenes/main_menu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,13 @@ one_shot = true
autostart = true
script = SubResource("GDScript_6ex1b")

[node name="RichTextLabel" type="RichTextLabel" parent="."]
layout_mode = 0
offset_left = 971.0
offset_top = -1.0
offset_right = 1169.0
offset_bottom = 47.0
theme_override_font_sizes/normal_font_size = 20
text = "by funkymonkeys"

[connection signal="pressed" from="Start Button" to="Start Button" method="_on_pressed"]
2 changes: 1 addition & 1 deletion scripts/high_score_display.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ var high_score
# Called when the node enters the scene tree for the first time.
func _ready():
high_score = get_parent().get_parent().get_parent().get_node("Start Button").high_score
rich_text_label.add_text("High Score: " + str(int(high_score)))
rich_text_label.add_text("High Score: " + str(int(high_score)))
2 changes: 2 additions & 0 deletions scripts/start_button.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extends Button
const GAME = preload("res://scenes/game.tscn")
const FINAL_CUTSCENE = preload("res://scenes/final_cutscene.tscn")

@onready var rich_text_label = $"../RichTextLabel"
@onready var main_menu = $".."
@onready var logo = $"../Logo"
@onready var game_timer = $"../Game Timer"
Expand Down Expand Up @@ -40,6 +41,7 @@ func _on_pressed():
print("timer started")

func main_menu_nuke():
#rich_text_label.queue_free()
logo.queue_free()
bg.queue_free()
road.queue_free()
Expand Down

0 comments on commit 92564cb

Please sign in to comment.