- 物理规则:现行模型仅保留滚动阻力耗能与恢复系数碰撞,风力、空气阻力、静摩擦、动摩擦不再参与运行;确认三球质量 60/330/约890 kg 及水密度、流阻参数 - 定向加速改为真实顶面接触触发的一次性 +5 m/s 速度事件,模型新增渐进式 U 形导槽出口 - 更新球体、滑槽、水/冰/墙、球洞模型与 storybook 目录、物理、实体配置 - 工坊摆放、编辑器、运行适配与检查脚本同步;删除过时的 baseline 三组检查 - 新增谜题设计参考文档、关卡草稿与本轮实验产物
26 lines
1.4 KiB
Bash
Executable File
26 lines
1.4 KiB
Bash
Executable File
#!/bin/zsh
|
|
set -euo pipefail
|
|
INTOHOLE_ROOT="${0:A:h:h}"
|
|
cd "$INTOHOLE_ROOT"
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
case "${1:-workshop}" in
|
|
-h|--help)
|
|
print 'Usage: ./scripts/run.zsh [workshop|showcase|materials|environment|test-environment|capture-environment|water|ice|test-elements|tutorial|playtest|merge|doctor|build|test|test-balls|test-tutorial|test-player-controls|test-turn-merge|test-floating|test-alignment|capture-tutorial|capture|baseline-build]'
|
|
exit 0 ;;
|
|
esac
|
|
INTOHOLE_ACTION="${1:-workshop}"
|
|
if (( $# )); then shift; fi
|
|
INTOHOLE_PYTHON="$INTOHOLE_ROOT/.venv/bin/python"
|
|
if [[ ! -x "$INTOHOLE_PYTHON" ]]; then
|
|
print -u2 'Project Python environment missing. Run uv sync in the project root.'
|
|
exit 1
|
|
fi
|
|
case "$INTOHOLE_ACTION" in
|
|
playtest) exec "$INTOHOLE_PYTHON" scripts/python/baseline.py play "$@" ;;
|
|
merge|doctor) exec "$INTOHOLE_PYTHON" scripts/python/baseline.py "$INTOHOLE_ACTION" "$@" ;;
|
|
baseline-build) exec "$INTOHOLE_PYTHON" scripts/python/baseline.py build "$@" ;;
|
|
workshop|showcase|materials|environment|test-environment|capture-environment|water|ice|test-elements|tutorial|build|test|test-balls|test-tutorial|test-player-controls|test-turn-merge|test-floating|test-alignment|capture-tutorial|capture)
|
|
exec "$INTOHOLE_PYTHON" scripts/python/studio.py "$INTOHOLE_ACTION" "$@" ;;
|
|
*) print -u2 "Unknown action: $INTOHOLE_ACTION"; exit 2 ;;
|
|
esac
|