Make the title screen go to the initial fishing screen

This commit is contained in:
Zoey Kitt 2024-11-17 11:12:53 -06:00
parent 05edc5e090
commit 574bc85d7e
3 changed files with 15 additions and 6 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://be813saajvxxs"]
[gd_scene load_steps=6 format=3 uid="uid://dv67unre56t5b"]
[ext_resource type="Texture2D" uid="uid://dobiydav6k32e" path="res://UI/GameOverScreen.png" id="1_60m3n"]
[ext_resource type="Script" path="res://scenes/gameover.gd" id="1_clwwq"]
@ -6,7 +6,7 @@
[ext_resource type="Texture2D" uid="uid://brlgi3g1hy155" path="res://UI/xbuttonpressed.png" id="2_wb6l8"]
[ext_resource type="Theme" uid="uid://ve18rbkeiwti" path="res://UI/text.tres" id="4_kotik"]
[node name="Node2D" type="Node2D"]
[node name="Node2D3" type="Node2D"]
script = ExtResource("1_clwwq")
[node name="Sprite2D" type="Sprite2D" parent="."]

View file

@ -21,5 +21,14 @@ func _on_minimize_button_up() -> void:
func _on_start_pressed() -> void:
get_window().size = Vector2(0,0)
get_window().position = Vector2(-100,-100)
#get_window().size = Vector2(0,0) This messes up the text for some godforesaken reason
get_window().position = Vector2(-1000,-1000)
var new_window = Window.new()
new_window.size = Vector2i(1280, 720)
new_window.initial_position = Window.WINDOW_INITIAL_POSITION_CENTER_SCREEN_WITH_MOUSE_FOCUS
#new_window.canvas_item_default_texture_filter = Viewport.DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST
var main_scene = preload("res://scenes/main.tscn")
var main_scene_instance = main_scene.instantiate()
new_window.add_child(main_scene_instance)
add_child(new_window)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=46 format=3 uid="uid://cosfolwy43pu"]
[gd_scene load_steps=46 format=3 uid="uid://bhcfvjkkpmtr4"]
[ext_resource type="Script" path="res://scenes/title.gd" id="1_q3sds"]
[ext_resource type="Texture2D" uid="uid://bmgnk2m8rj1n1" path="res://UI/StartScreen.png" id="1_xa24a"]
@ -281,7 +281,7 @@ animations = [{
"speed": 36.0
}]
[node name="Node2D" type="Node2D"]
[node name="Node2D2" type="Node2D"]
script = ExtResource("1_q3sds")
[node name="Background" type="Sprite2D" parent="."]