1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

tidy up title screen

Moved titlescreen.gd to scripts folder
This commit is contained in:
tommy-l-ngo
2021-10-19 23:39:04 -05:00
committed by John
parent c5e541fc5a
commit df0f203343
6 changed files with 8 additions and 5 deletions

View File

@@ -0,0 +1,29 @@
extends Control
# 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():
$VBoxContainer/Singleplayer.grab_focus()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Singleplayer_pressed():
get_tree().change_scene("res://scenes/Gameplay.tscn")
func _on_Multiplayer_pressed():
get_tree().change_scene("res://scenes/Gameplay.tscn")
func _on_Options_pressed():
get_tree().change_scene("res://scenes/Options.tscn")
func _on_Quit_pressed():
get_tree().quit()

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Title-Screen-Background.png-dbef7fef33c56892772634130111c923.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://script/title screen/Title-Screen-Background.png"
dest_files=[ "res://.import/Title-Screen-Background.png-dbef7fef33c56892772634130111c923.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0