extends "res://playtest/tutorial/scripts/tutorial.gd" func series_title() -> String: return "水流对照" func setup_ui() -> void: super.setup_ui() toolbar.hide() for button_view in lesson_buttons: button_view.hide() func open_lesson(index: int) -> void: super.open_lesson(index) camera_size = 5.0 update_camera() func refresh_ui() -> void: super.refresh_ui() if status_label == null or lesson.is_empty(): return timer_label.text = "释放后 %.1f 秒" % elapsed if started else "等待释放 · 2 颗原木球" if not started and not failed: status_label.text = "" status_label.hide() else: status_label.show() restart_button.text = "重置对照" func read_lesson(_index: int) -> Dictionary: return { "title": "水流对照", "objective": "释放前,观察并排两块水面上的泡沫。", "hint": "跟着同一缕泡沫看,就能分清两块水各自往哪边流。", "inventory": {}, "defaults": {}, "layout": { "schemaVersion": 2, "assetFamily": "railbound_inspired", "pieces": [], "entities": [ {"id": "near_bed", "kind": "wall", "position": [0, 0, 1], "quarter": 0}, {"id": "far_bed", "kind": "wall", "position": [0, 0, 0], "quarter": 0}, {"id": "near_water", "kind": "water", "position": [0, 1, 1], "quarter": 0}, {"id": "far_water", "kind": "water", "position": [0, 1, 0], "quarter": 2}, ], "balls": [ {"id": "near_ball", "ballTypeId": "wood_ball", "position": [-0.34, 2.36, 1]}, {"id": "far_ball", "ballTypeId": "wood_ball", "position": [0.34, 2.36, 0]}, ], }, } func initial_layout(data: Dictionary) -> Dictionary: return data.layout