See video walkthrough to follow along. Thanks to Brian Fleischman for video and Derrick McMillen for initial instructions.
-
Open a command line to the location you'd like to install Space Battle.
-
Clone the repository, this should create a new 'SpaceBattleArena' folder.
git clone https://github.com/Mikeware/SpaceBattleArena.git
- Navigate to the Server Directory SBA_Serv
cd SpaceBattleArena
cd SBA_Serv
- Install Xcode command line tools
xcode-select --install
- Install Homebrew (aka brew)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install libraries needed for pygame using brew
brew cask install xquartz
brew install python
brew linkapps python
brew install mercurial
brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis
brew install sdl_mixer --with-libvorbis
- Install SpaceBattleArena requirements using pip
pip install -r requirements.txt
- Start SpaceBattleArena
python SBA_Serv.py
Find more information about configuring and running the server on the main site.
Just add configuration files to the end of the 'python SBA_Serv.py' command instead of the 'SBA_Serv' shown in the examples.