diff -ruN a/scripts/autoload/net.gd b/scripts/autoload/net.gd --- a/scripts/autoload/net.gd +++ b/scripts/autoload/net.gd @@ -79,9 +79,8 @@ func _ready() -> void: - # The host's RSA key takes a second or more of CPU: make it in the background at boot, - # so hosting never waits for it. - NetPeer.prepare_host_key() + # fredygames: no online play on this site, so no host key is made at boot (it needs a thread). + pass func _exit_tree() -> void: diff -ruN a/scripts/ui/main_menu.gd b/scripts/ui/main_menu.gd --- a/scripts/ui/main_menu.gd +++ b/scripts/ui/main_menu.gd @@ -51,13 +51,6 @@ demo_button.text = "Demo" training_button.add_sibling(demo_button) demo_button.pressed.connect(func() -> void: GameState.start_demo(get_tree())) - # Online sits under Versus; built from it so it shares the menu's look. - var online_button := versus_button.duplicate(0) as Button # 0: without Versus's signal connections - online_button.name = "OnlineButton" - online_button.unique_name_in_owner = false - online_button.text = "Online" - versus_button.add_sibling(online_button) - online_button.pressed.connect(func() -> void: get_tree().change_scene_to_file(ONLINE_SCENE)) if Net.peer: Net.leave() # back at the main menu: any online session is over if Net.lobby: diff -ruN a/scripts/ui/server_lobby.gd b/scripts/ui/server_lobby.gd --- a/scripts/ui/server_lobby.gd +++ b/scripts/ui/server_lobby.gd @@ -18,8 +18,8 @@ const REFRESH_MS := 3000 ## Below this many players the lobby shows "under 5 online" instead of exact counts. const FEW_ONLINE := 5 -const DEFAULT_SERVER := "wss://104-248-147-130.sslip.io/v1/ws" -const SERVER_LIST_URL := "https://raw.githubusercontent.com/clintcan/3d-fighter/main/online/servers.json" +const DEFAULT_SERVER := "" # fredygames: online play removed +const SERVER_LIST_URL := "" # fredygames: online play removed var _name_edit: LineEdit var _url_edit: LineEdit