feat: 更新 IntoHole 的球体、滑槽和环境资产
- 为铁球、陶瓷球和木球制作风格化材质,归档 CC0 原始参考 - 更新方形球洞和实心滑槽,统一 90° 弯槽并兼容旧存档 - 用顺流泡沫表示水流方向,为冰块制作三种交错的裂纹 - 同步 Blender 源资产、Godot 加载、工坊和试玩预览
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
extends "res://playtest/tutorial/scripts/tutorial.gd"
|
||||
|
||||
@export_enum("water", "ice") var series: String = "water"
|
||||
|
||||
func series_title() -> String:
|
||||
return "水方块" if series == "water" else "冰方块"
|
||||
|
||||
func read_lesson(index: int) -> Dictionary:
|
||||
var path := "res://playtest/%s/data/%02d.json" % [series, index + 1]
|
||||
var data = JSON.parse_string(FileAccess.get_file_as_string(path))
|
||||
if data is Dictionary:
|
||||
return data
|
||||
return {}
|
||||
|
||||
func initial_layout(data: Dictionary) -> Dictionary:
|
||||
# Some layouts need a starting view from the open side of the goal.
|
||||
yaw = deg_to_rad(float(data.get("cameraYawDegrees", rad_to_deg(.95))))
|
||||
return data.initial
|
||||
Reference in New Issue
Block a user