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

@@ -1,29 +0,0 @@
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()

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scenes/Title-Screen-Background.png" type="Texture" id=1]
[ext_resource path="res://scenes/Title Screen.gd" type="Script" id=2]
[ext_resource path="res://script/title screen/Title-Screen-Background.png" type="Texture" id=1]
[ext_resource path="res://script/title screen/Title Screen.gd" type="Script" id=2]
[node name="Title Node" type="Control"]
anchor_right = 1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -1,34 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Title-Screen-Background.png-0858ea44e9c9235fceac088a9c0f7d28.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/Title-Screen-Background.png"
dest_files=[ "res://.import/Title-Screen-Background.png-0858ea44e9c9235fceac088a9c0f7d28.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