TR
apps/winzik / tools / site / shots.sh · commit 6576d6f
#!/usr/bin/env bash# The pictures of the site (site/images) and of the directory (assets/thumbnail.png), made from WinZik itself:# headless shots of the player at chosen moments, the frames of the game tests (menu, compact, Lock, A propos...),# then tools/site/make.py crops and arranges them. Run from the root of the JumPHP project: apps/winzik/tools/site/shots.shset -euo pipefailcd "$(dirname "$0")/../../../.."APP=apps/winzikOUT=$APP/var/screenshots/site-srcmkdir -p "$OUT"shot() { # name params  JUMPHP_SCENE='App\Form\MainForm' JUMPHP_SCENE_PARAMS="$2" bin/jumphp shot winzik 150 "var/screenshots/site-src/$1.png" >/dev/null}shot player   '{"demo":true,"fresh":true,"seek":25}'shot theskin  '{"demo":true,"fresh":true,"seek":41,"skin":"the-skin","expanded":true}'JUMPHP_SCENE='App\Scene\SplashScene' bin/jumphp shot winzik 70 var/screenshots/site-src/splash.png >/dev/nullbin/jumphp test winzik >/dev/null      # the game tests leave their frames in var/screenshots/testspython3 -I "$APP/tools/site/make.py" "$APP"