diff --git a/Menu.gd b/Menu.gd index 7cbfe01..9534bf6 100644 --- a/Menu.gd +++ b/Menu.gd @@ -1,20 +1,7 @@ extends Node2D - -# Declare member variables here. Examples: -# var a = 2 -# var b = "text" - - -# Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. - -# Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): -# pass - - func _on_Btn_PlayGame_pressed(): get_tree().change_scene("res://river_intersection_home2.tscn") diff --git a/Menu.tscn b/Menu.tscn index 2bdd8c8..b28da46 100644 --- a/Menu.tscn +++ b/Menu.tscn @@ -1,6 +1,13 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://Menu.gd" type="Script" id=1] +[ext_resource path="res://pictures/animations/Loading/loading_ring.png" type="Texture" id=2] +[ext_resource path="res://MiscCodes/loading_ring.gd" type="Script" id=3] +[ext_resource path="res://ring_of_races_font.ttf" type="DynamicFontData" id=4] + +[sub_resource type="DynamicFont" id=1] +size = 30 +font_data = ExtResource( 4 ) [node name="Main Menu" type="Node2D"] script = ExtResource( 1 ) @@ -10,8 +17,14 @@ margin_left = 484.204 margin_top = 100.226 margin_right = 679.204 margin_bottom = 153.226 +custom_fonts/font = SubResource( 1 ) text = "Play Game" __meta__ = { "_edit_use_anchors_": false } + +[node name="loading_ring" type="Sprite" parent="."] +position = Vector2( 574.719, 228.63 ) +texture = ExtResource( 2 ) +script = ExtResource( 3 ) [connection signal="pressed" from="Btn_PlayGame" to="." method="_on_Btn_PlayGame_pressed"] diff --git a/MiscCodes/loading_ring.gd b/MiscCodes/loading_ring.gd new file mode 100644 index 0000000..42d7f65 --- /dev/null +++ b/MiscCodes/loading_ring.gd @@ -0,0 +1,4 @@ +extends Sprite + +func _physics_process(delta): + rotate(0.1) diff --git a/ring_of_races_font.tres b/ring_of_races_font.tres new file mode 100644 index 0000000..92adcc4 --- /dev/null +++ b/ring_of_races_font.tres @@ -0,0 +1,5 @@ +[gd_resource type="DynamicFontData" format=2] + +[resource] +resource_local_to_scene = true +font_path = "res://ring_of_races_font.ttf" diff --git a/ring_of_races_font.ttf b/ring_of_races_font.ttf new file mode 100644 index 0000000..012a5fc Binary files /dev/null and b/ring_of_races_font.ttf differ