X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk-img.git;a=blobdiff_plain;f=bin%2Fspriter.sh;h=4698d634ebff5a52774a4b56d29f6c8664c41687;hp=e9f4026c1e6006d0dde95f22ae3b36f21b2f98b5;hb=747d3972d411c6e2d2b9bcd9f9bcf69509cfa2bf;hpb=11f541006e07dcb9b2e7cb7cb2ee46180931512c diff --git a/bin/spriter.sh b/bin/spriter.sh index e9f4026..4698d63 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -20,8 +20,8 @@ convert -size $((w * 9))x$((h * 5)) xc:none ${fou}${sfx}_bg.png convert -size $((h * 9))x$((w * 5)) xc:none ${fou}${sfx}_oriz_bg.png convert -size ${w}x${h} xc:none ${fou}${sfx}_empty.png -convert -size ${h}x${w} xc:none ${fou}${sfx}_empty_eawe.png - +convert -size ${h}x${w} xc:none ${fou}${sfx}_empty_ea.png +cp ${fou}${sfx}_empty_ea.png ${fou}${sfx}_empty_we.png cssname="${fou}${sfx}.css" rm -f $cssname touch $cssname @@ -44,6 +44,9 @@ for direction in "" "_ea" "_we"; do fi card_id=$(printf "%02d" "$((seed * 10 + card))") + if [ "$card_id" = "40" ]; then + card_id="cover" + fi cat <> $cssname img[data-card-id="${card_id}${direction}"] { background: url('img/cards_xx${direction}.png') -${x}px -${y}px;