Added Title Screen

This commit is contained in:
nwf2004 2023-01-29 20:14:42 -05:00
parent 26be80e893
commit b9602abb51
16 changed files with 293 additions and 6 deletions

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scenes/TitleScreen/NewGAme.tscn" type="PackedScene" id=1]
[node name="Credits" instance=ExtResource( 1 )]
[node name="VBoxContainer" parent="CenterContainer" index="0"]
margin_left = 414.0
margin_right = 610.0
[node name="Label" parent="CenterContainer/VBoxContainer" index="0"]
margin_right = 196.0
text = "Credits"
[node name="Button" parent="CenterContainer/VBoxContainer" index="1"]
margin_right = 196.0

View file

@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scenes/TitleScreen/MenuButton.tscn" type="PackedScene" id=1]
[node name="CreditsButton" instance=ExtResource( 1 )]
[node name="Label" parent="." index="0"]
text = "Credits"

View file

@ -0,0 +1,44 @@
[gd_scene load_steps=3 format=2]
[sub_resource type="Animation" id=1]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 0 ) ]
}
[sub_resource type="Animation" id=2]
resource_name = "fade_in"
step = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 0 ), Color( 0, 0, 0, 1 ) ]
}
[node name="FadeIn" type="ColorRect"]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/RESET = SubResource( 1 )
anims/fade_in = SubResource( 2 )

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scenes/TitleScreen/NewGAme.tscn" type="PackedScene" id=1]
[node name="Manual" instance=ExtResource( 1 )]
[node name="VBoxContainer" parent="CenterContainer" index="0"]
margin_left = 415.0
margin_right = 608.0
[node name="Label" parent="CenterContainer/VBoxContainer" index="0"]
margin_right = 193.0
text = "Manual"
[node name="Button" parent="CenterContainer/VBoxContainer" index="1"]
margin_right = 193.0

View file

@ -0,0 +1,8 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Scenes/TitleScreen/StartGame.tscn" type="PackedScene" id=1]
[node name="ManualButton" instance=ExtResource( 1 )]
[node name="Label" parent="." index="0"]
text = "Manual"

View file

@ -0,0 +1,43 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Scenes/TitleScreen/new_dynamicfont.tres" type="DynamicFont" id=1]
[ext_resource path="res://Scenes/TitleScreen/ReturnToTitle.gd" type="Script" id=2]
[node name="NewGAme" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 295.0
margin_top = 337.0
margin_right = 728.0
margin_bottom = 431.0
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
margin_right = 433.0
margin_bottom = 42.0
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = 0
custom_constants/shadow_offset_y = 5
custom_fonts/font = ExtResource( 1 )
text = "new game scene"
[node name="Button" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 46.0
margin_right = 433.0
margin_bottom = 94.0
custom_fonts/font = ExtResource( 1 )
text = "Back"
[connection signal="pressed" from="CenterContainer/VBoxContainer/Button" to="." method="_on_Button_pressed"]

View file

@ -0,0 +1,4 @@
extends Control
func _on_Button_pressed():
get_tree().change_scene("res://Scenes/TitleScreen.tscn")

View file

@ -0,0 +1,5 @@
extends Button
export(String) var scene_to_load

View file

@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://Graphics/Fonts/CC Wild Words Roman.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1]
size = 48
font_data = ExtResource( 1 )
[node name="MenuButton" type="Button"]
margin_right = 784.0
margin_bottom = 20.0
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="."]
margin_right = 40.0
margin_bottom = 14.0
rect_min_size = Vector2( 360, 60 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = 0
custom_constants/shadow_offset_y = 5
custom_fonts/font = SubResource( 1 )
text = "Start Game"
__meta__ = {
"_edit_use_anchors_": false
}

View file

@ -0,0 +1,8 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[sub_resource type="DynamicFontData" id=1]
font_path = "res://Graphics/Fonts/CC Wild Words Roman.ttf"
[resource]
size = 48
font_data = SubResource( 1 )