- 为铁球、陶瓷球和木球制作风格化材质,归档 CC0 原始参考 - 更新方形球洞和实心滑槽,统一 90° 弯槽并兼容旧存档 - 用顺流泡沫表示水流方向,为冰块制作三种交错的裂纹 - 同步 Blender 源资产、Godot 加载、工坊和试玩预览
27 lines
1.5 KiB
Bash
Executable File
27 lines
1.5 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|baseline-test]'
|
|
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 "$@" ;;
|
|
baseline-test) exec "$INTOHOLE_PYTHON" scripts/python/baseline.py test "$@" ;;
|
|
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
|