Added web based game Aliens.
This commit is contained in:
parent
3b6c4e8859
commit
223a262e61
@ -216,6 +216,8 @@ game_launcher() {
|
|||||||
for i in "${lines[@]}" ; do
|
for i in "${lines[@]}" ; do
|
||||||
menuList+=("${i#*|}" "${i%|*}")
|
menuList+=("${i#*|}" "${i%|*}")
|
||||||
done
|
done
|
||||||
|
# Web based games and donation
|
||||||
|
menuList+=("Aliens" "Aliens")
|
||||||
menuList+=("Donate" "Donate")
|
menuList+=("Donate" "Donate")
|
||||||
game="$(dialog --backtitle "Linux Game Launcher" \
|
game="$(dialog --backtitle "Linux Game Launcher" \
|
||||||
--clear \
|
--clear \
|
||||||
@ -225,10 +227,18 @@ game_launcher() {
|
|||||||
if [[ $menuCode -eq 1 ]]; then
|
if [[ $menuCode -eq 1 ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if [[ "$game" == "Donate" ]]; then
|
case "${game}" in
|
||||||
open_url "https://ko-fi.com/stormux"
|
"Aliens")
|
||||||
|
open_url "https://files.jantrid.net/aliens/"
|
||||||
|
;;&
|
||||||
|
"Donate")
|
||||||
|
open_url "https://ko-fi.com/stormux"
|
||||||
|
;;&
|
||||||
|
*)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
|
||||||
exec ${game%|}
|
exec ${game%|}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,6 +265,7 @@ exec &> >(/usr/bin/tee -a "${cache}/linux-game-manager.log")
|
|||||||
# The list of games available for installation.
|
# The list of games available for installation.
|
||||||
# Use menu friendly names.
|
# Use menu friendly names.
|
||||||
gameList=(
|
gameList=(
|
||||||
|
"Aliens"
|
||||||
"E.X.O."
|
"E.X.O."
|
||||||
"Fantasy Story II"
|
"Fantasy Story II"
|
||||||
"S.E.A."
|
"S.E.A."
|
||||||
@ -314,6 +325,10 @@ done
|
|||||||
installPath="${HOME}/.local/games"
|
installPath="${HOME}/.local/games"
|
||||||
mkdir -p "${installPath}"
|
mkdir -p "${installPath}"
|
||||||
case "${game}" in
|
case "${game}" in
|
||||||
|
"Aliens")
|
||||||
|
dialog --backtitle "Linux Game manager" \
|
||||||
|
--infobox "${game} is a web based game and does not need to be installed." -1 -1
|
||||||
|
;;
|
||||||
"E.X.O.")
|
"E.X.O.")
|
||||||
get_installer "EXO-linux-x64.zip" "https://shiftbacktick.itch.io/exo"
|
get_installer "EXO-linux-x64.zip" "https://shiftbacktick.itch.io/exo"
|
||||||
mkdir -p "${installPath}/E.X.O."
|
mkdir -p "${installPath}/E.X.O."
|
||||||
|
Loading…
Reference in New Issue
Block a user