- 加入 Godot 基础试玩、画风展示和通孔验证场景 - 支持自由放球、多层叠放、墙壁、锥口球洞及固定 +5 m/s 定向加速方块 - 保存 Blender 源资产、模型导出、资源制作脚本和关卡编辑存档逻辑 - 按七类目录归档工程,集中 zsh 启动入口并补充 AGENTS.md 文件索引 - 同步设计规则、依赖锁定、验证报告和目录迁移记录 验证:目录迁移后的资源导入与四个场景加载通过;本次提交前检查暂存内容,未重复运行整套物理测试。
20 lines
1.0 KiB
GDScript
20 lines
1.0 KiB
GDScript
# Native render fixture for reviewing new assets and their authoring controls.
|
|
extends SceneTree
|
|
func _initialize():call_deferred("run")
|
|
func run():
|
|
var app=load("res://designer/scenes/workshop.tscn").instantiate();root.add_child(app)
|
|
app.apply_data({"schemaVersion":2,"pieces":[],"entities":[
|
|
{"id":"wall_preview","kind":"wall","position":[-1,0,0],"quarter":0},
|
|
{"id":"hole_preview","kind":"goal_hole","position":[1,1,0],"quarter":0}],
|
|
"balls":[{"id":"floating_iron","ballTypeId":"iron_ball","position":[1.3,2.3,0],"launchDirection":[1,0,0]}]})
|
|
app.select_category("nonInteractive")
|
|
app.select_record("wall_preview")
|
|
app.ball_cursor=Vector3(1.3,2.3,0)
|
|
app.refresh_selection();app.refresh_ball_marker();app.ball_marker.hide()
|
|
app.camera_size=7;app.update_camera()
|
|
app.status="标准墙壁 · 锥口球洞 · 独立悬空铁球";app.refresh_ui()
|
|
for i in range(15):await process_frame
|
|
await RenderingServer.frame_post_draw
|
|
root.get_texture().get_image().save_png(ProjectSettings.globalize_path("res://playtest/artifacts/styled/entity_assets.png"))
|
|
quit()
|