ZH

RAINBOW ISLANDS

作者:davidnurdin · 重制版
5.0 (1)
▶ 开玩 💬 反馈 源码 🕘 版本 编辑 GitHub
games/rainbow-island / tools / extract / extract.sh · commit 572589f
#!/usr/bin/env bash# Rebuilds the graphics and the maps of assets/ from the original disc image.#   tools/extract/extract.sh /path/to/rainbow.dsk [work dir]# Needs a C compiler, python3 and Pillow on the machine (an offline tool: the game never runs it).set -euo pipefailHERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"GAME="$(cd "$HERE/../.." && pwd)"DSK="$1"WORK="${2:-$(mktemp -d)}"make -C "$HERE/emulator" >/dev/nullfor round in $(seq 0 27); do  python3 -I "$HERE/extract_round.py" "$HERE/emulator/cpc" "$DSK" "$WORK/rounds" "$round"donepython3 -I "$HERE/export.py" "$DSK" "$WORK/rounds" "$GAME"