diff options
author | ubuntuperonista <30541016+ubuntuperonista@users.noreply.github.com> | 2023-07-27 23:42:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 23:42:41 -0300 |
commit | 68fba509b266bd7a8b695598a4d249501115c5c3 (patch) | |
tree | a68719c9928f6b8e67c0ed3d83f5a3088c45e4ee | |
parent | 31b02bb3275a4d6af6203953313f7f488a4f5358 (diff) | |
download | wargames-68fba509b266bd7a8b695598a4d249501115c5c3.tar.gz |
Update wargames.sh
Simplify the power ASCII power generation.
-rw-r--r-- | wargames.sh | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/wargames.sh b/wargames.sh index 70e7315..98830d5 100644 --- a/wargames.sh +++ b/wargames.sh @@ -28,39 +28,48 @@ touch ${DIR}/.usa.txt touch ${DIR}/.ussr.txt #crea fichero temporal con arte gráfica de las powers >> ${DIR}/.powers.txt -echo " ,------~~v, _--^\\" > ${DIR}/.powers.txt -echo " |' п\ ,__/п|| _/ /,_" >> ${DIR}/.powers.txt -echo "/ \,/ / ,, ,,/^ п vпv-__" >> ${DIR}/.powers.txt -echo "| / |'~^п п\\" >> ${DIR}/.powers.txt -echo "\ | _/ _ /^" >> ${DIR}/.powers.txt -echo " \ / / ,~~^/|пп" >> ${DIR}/.powers.txt -echo " ^п~_ / | __,, v__\ \/" >> ${DIR}/.powers.txt -echo " '~~, ,п~п\ \ ^~ / ~п //" >> ${DIR}/.powers.txt -echo " \/ \/ \~, ,/ п" >> ${DIR}/.powers.txt -echo " ~~" >> ${DIR}/.powers.txt +FILE="${DIR}/.powers.txt" +cat <<EOM >$FILE + ,------~~v, _--^\\ + |' п\ ,__/п|| _/ /,_ +/ \,/ / ,, ,,/^ п vпv-__ +| / |'~^п п\\ +\ | _/ _ /^ + \ / / ,~~^/|пп + ^п~_ / | __,, v__\ \/ + '~~, ,п~п\ \ ^~ / ~п // + \/ \/ \~, ,/ п + ~~ +EOM # creates .usa.txt -echo " ,------~~v," > "${DIR}"/.usa.txt -echo " |' п\ ,__/п||'" >> ${DIR}/.usa.txt -echo "/ \,/ /" >> ${DIR}/.usa.txt -echo "| /" >> ${DIR}/.usa.txt -echo "\ |" >> ${DIR}/.usa.txt -echo " \ /" >> ${DIR}/.usa.txt -echo " ^п~_ /" >> ${DIR}/.usa.txt -echo " '~~, ,п~п\ \\" >> ${DIR}/.usa.txt -echo " \/ \/" >> ${DIR}/.usa.txt +FILE="${DIR}/.usa.txt" +cat <<EOM >$FILE + ,------~~v, + |' п\ ,__/п||' +/ \,/ / +| / +\ | + \ / + ^п~_ / + '~~, ,п~п\ \\ + \/ \/ +EOM #creates .ussr.txt -echo " _--^\\" > ${DIR}/.ussr.txt -echo " _/ /'_" >> ${DIR}/.ussr.txt -echo " ,, ,,/^ п vпv-__" >> ${DIR}/.ussr.txt -echo " /'~^п п\\" >> ${DIR}/.ussr.txt -echo " _/ _ /^" >> ${DIR}/.ussr.txt -echo " / ,~~^/|пп" >> ${DIR}/.ussr.txt -echo "| __,, v__\ \/" >> ${DIR}/.ussr.txt -echo " ^~ / ~п //" >> ${DIR}/.ussr.txt -echo " \~, ,/ п" >> ${DIR}/.ussr.txt -echo " ~~" >> "${DIR}"/.ussr.txt +FILE="${DIR}/.ussr.txt" +cat <<EOM >$FILE + _--^\\ + _/ /'_ + ,, ,,/^ п vпv-__ + /'~^п п\\ + _/ _ /^ + / ,~~^/|пп +| __,, v__\ \/ + ^~ / ~п // + \~, ,/ п + ~~ +EOM ## Toca la música #play ${MUSIC} -q & @@ -361,6 +370,7 @@ read -t 10 clear + #Final # Borra los archivos temporales creados rm -f ${DIR}/.wargames.txt |