Skip to content

Instantly share code, notes, and snippets.

@sli
Last active August 29, 2015 14:18
Show Gist options
  • Save sli/5ea9ea3a364df412b685 to your computer and use it in GitHub Desktop.
Save sli/5ea9ea3a364df412b685 to your computer and use it in GitHub Desktop.
games.sh
#!/bin/bash
NES='fceu'
PS3='Choose a game: '
options=("Cave Story" "Legend of Zelda" "Zelda II: The Adventure of Link" "Super Dodge Ball" "Excitebike" "Super Mario Bros." "Super Mario Bros. 2" "Super Mario Bros. 3" "Mega Man" "Kirby's Adventure" "pokemans" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Cave Story")
cd /usr/local/bin/indiecity/InstalledApps/nxengine/Full
./cave.sh
cd ~
clear
;;
"Legend of Zelda")
$NES ./roms/nes/loz.nes
clear
;;
"Zelda II: The Adventure of Link")
$NES ./roms/nes/zelda2.nes
clear
;;
"Super Dodge Ball")
$NES ./roms/nes/sdb.nes
clear
;;
"Excitebike")
$NES ./roms/nes/excite.nes
clear
;;
"Super Mario Bros.")
$NES ./roms/nes/smb.nes
clear
;;
"Super Mario Bros. 2")
$NES ./roms/nes/smb2.nes
clear
;;
"Super Mario Bros. 3")
$NES ./roms/nes/smb3.nes
clear
;;
"Mega Man")
$NES ./roms/nes/mm1.nes
clear
;;
"Kirby's Adventure")
$NES ./roms/nes/ka.nes
clear
;;
"pokemans")
$NES ./roms/nes/pokemans.nes
clear
;;
"Quit")
;;
esac
break
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment