diff -ru a/scripts/strike_main.gd b/scripts/strike_main.gd --- a/scripts/strike_main.gd 2026-10-04 22:11:32.000000000 -0300 +++ b/scripts/strike_main.gd 2026-11-05 18:21:02.391455329 -0300 @@ -23,6 +23,8 @@ func _ready() -> void: get_tree().quit_on_go_back = false $UI/StartMenu/Scroll/VBox/QuitButton.pressed.connect(_on_quit) + # Site build: quitting only freezes the page in a browser, so the Quit button is hidden. + $UI/StartMenu/Scroll/VBox/QuitButton.hide() $UI/StartMenu/Scroll/VBox/NerdKnobsButton.pressed.connect(_toggle_nerd_knobs) touch_to_start_button.pressed.connect(_start_play) mode_2d_button.pressed.connect(_select_mode.bind(GameMode.MODE_2D)) @@ -152,6 +154,8 @@ ## Stop audio before a user-requested application exit; settings already save on change. func _on_quit() -> void: + if OS.has_feature("web"): + return AudioManager.shutdown() get_tree().quit() @@ -456,7 +460,7 @@ credits.offset_bottom = -64 credits.add_theme_font_size_override("normal_font_size", 20) credits.text = "[b]ASTRO STRIKE[/b]\nOriginal code, vector art and SFX: CC0 1.0.\n\n[b]MUSIC — CC0 1.0 / Public Domain[/b]\nThe Cogs — turtletooth\n[url=https://opengameart.org/content/the-cogs]OpenGameArt source[/url]\n\nOut in Space / Out in Space Menu — Agecaf\n[url=https://opengameart.org/content/out-in-space-0]OpenGameArt source[/url]\n\nPondering the Cosmos — Ruskerdax\n[url=https://opengameart.org/content/pondering-the-cosmos]OpenGameArt source[/url]\n\n[b]BACKGROUND — CC BY 4.0[/b]\nTransients in JADES field (JADES7)\nNASA, ESA, CSA, STScI\nResized for Astro Strike.\n[url=https://esawebb.org/images/JADES7/]ESA/Webb source[/url] · [url=https://creativecommons.org/licenses/by/4.0/]CC BY 4.0 license[/url]\n\nThird-party works retain their licenses.\n[url=https://creativecommons.org/publicdomain/zero/1.0/]CC0 dedication[/url]\n\nBuilt with Godot (MIT).\n[url=https://godotengine.org/license/]Godot and engine component notices[/url]" - credits.meta_clicked.connect(func(url: Variant) -> void: OS.shell_open(str(url))) + # Site build: the links in the credits do not open other pages (the call to OS.shell_open is removed). dialog.add_child(credits) $UI.add_child(dialog) button.pressed.connect(func() -> void: