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