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:
29
godot_ship/script/title screen/Title Screen.gd
Normal file
29
godot_ship/script/title screen/Title Screen.gd
Normal 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()
|
||||
BIN
godot_ship/script/title screen/Title-Screen-Background.png
Normal file
BIN
godot_ship/script/title screen/Title-Screen-Background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
@@ -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
|
||||
Reference in New Issue
Block a user