extends Control var skipIntro = false func _ready() -> void: DisplayServer.window_set_title(str("SCP - Containment Breach v", Global.GAME_VERSION)) var width = Global.options.get("options").get("width").to_int() var height = Global.options.get("options").get("height").to_int() var fullscreen = Global.options.get("options").get("fullscreen").to_lower() == "true" DisplayServer.window_set_max_size(Vector2i(width, height)) DisplayServer.window_set_min_size(Vector2i(width, height)) var window = get_window() window.size = Vector2i(width, height) if not fullscreen: window.move_to_center() DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN if fullscreen else DisplayServer.WINDOW_MODE_WINDOWED) if skipIntro: skipIntroVideo.call_deferred() else: playIntro.call_deferred() func skipIntroVideo(): get_tree().change_scene_to_file("res://scenes/screens/MainMenu.tscn") func playIntro(): Global.videoToPlay = "res://GFX/menu/startup_Undertow.avi" get_tree().change_scene_to_file("res://scenes/screens/IntroVideo.tscn")