From 3f53502a5907ed1982d28a392c54331f0c1c2c42 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 25 Sep 2025 12:09:50 -0400 Subject: Move the client into the apworld Only works on source right now, not as an apworld. --- apworld/client/run_from_source.tscn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apworld/client/run_from_source.tscn (limited to 'apworld/client/run_from_source.tscn') diff --git a/apworld/client/run_from_source.tscn b/apworld/client/run_from_source.tscn new file mode 100644 index 0000000..b710677 --- /dev/null +++ b/apworld/client/run_from_source.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=11 format=2] + +[sub_resource id=2 type="GDScript"] +script/source = "extends Node2D + + +func _ready(): + var args = OS.get_cmdline_user_args() + var source_path = args[0] + + var runtime_script = ResourceLoader.load(\"%s/source_runtime.gd\" % source_path) + var runtime = runtime_script.new(source_path) + runtime.name = \"Runtime\" + + global.add_child(runtime) + + var settings_screen = runtime.load_path(\"settings_screen.tscn\") + get_tree().change_scene_to_packed(settings_screen) + +" + +[node name="loader" type="Node2D"] +script = SubResource( 2 ) -- cgit 1.4.1