summaryrefslogtreecommitdiff
path: root/scenes/title.gd
diff options
context:
space:
mode:
authorZoey Kitt <zoey.kitt@outlook.com>2024-11-17 11:12:53 -0600
committerZoey Kitt <zoey.kitt@outlook.com>2024-11-17 11:12:53 -0600
commit574bc85d7e7c7ebe51cfd40de676d00cbdc622ce (patch)
tree53c145e2e3112aba67eaa3421a5b8a006078b56b /scenes/title.gd
parent05edc5e0909db8b4d48c971c8b2680a71997bb1f (diff)
Make the title screen go to the initial fishing screen
Diffstat (limited to 'scenes/title.gd')
-rw-r--r--scenes/title.gd13
1 files changed, 11 insertions, 2 deletions
diff --git a/scenes/title.gd b/scenes/title.gd
index 5373abe..7209e85 100644
--- a/scenes/title.gd
+++ b/scenes/title.gd
@@ -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)