Inspired by the Fire Emblem series, Wizard vs. World is a 2D tactical roguelike role-playing game built using the PyGame 1.9.6 engine.
- You must be using Python 3.7.x (Meaning: 3.7.0 <= your_python_version < 3.8.0)
- Install the game:
python3.7 -m pip install WizardVsWorld
- NOTE:
python3.7
represents whatever Python 3.7 is aliased to on your machine it could also bepy
,python
, etc.
- NOTE:
- Run the game:
WizardVsWorld
- Create a virtual environment for Python3.7:
virtualenv -p="/usr/bin/python3.7" <env_name>
- Use the virtual environment:
source <env_name>/bin/activate
- Install the WizardVsWorld Package from PIP:
pip install WizardVsWorld
- Run the game:
WizardVsWorld
- Download the source
python3.7 -m pip3 install pygame
python3.7 -m game.py
- PyGame 1.9.6
Package Name: WizardVsWorld
Executable Command: WizardVsWorld
Initialization Command: WizardVsWorld(?)
Required Python Version: >= Python 3.7.0 && < Python 3.8.0
- Luke Herczeg
- Jacob Hyde
- Gus Segovia
- Logan Smith
- Juan Suhr
PyGame 1.9.7 (the latest stable version) has some issues working with Python 3.8, so to run the project we need to make sure we set up PyCharm to use 'WSL: Python 3.7' as its interpreter, and use PyCharm to install PyGame 1.9.6, which is compatible with Python 3.7. These instructions assume that you are using Ubuntu 20.04 (You probably are if you installed a new Ubuntu version for this class)
- Check if you have Python 3.7 installed on your WSL by running
python3.7 --version
, if it is installed skip to step 3 - Run the following commands (after list) to add the
deadsnakes
repo (for older versions of python) and install Python 3.7 - Open the project in Python and go to File > Settings and search "Interpreter" in the search box at the top and navigate to "Python Interpreter"
- Click on the Gear icon next to the "Python Interpreter" line, then click "Add"
- Click on the WSL option on the left side
- Ensure the correct Linux distribution is selected if you have multiple (mine was just called Ubuntu)
- Set the "Python Interpreter Path" to
/usr/bin/python3.7
, click OK twice to close the menus - Click on the Environment Dropdown to the left of the play button at the top of the editor, click "Edit Configurations"
- Click on the "+" button in the upper left of the pop-up, click on "Python"
- Name the Configuration whatever you want
- Set the script path to the absolute path of "game.py"
- Set the interpreter to "3.7 @ Ubuntu"
- Click OK and ensure that your new Configuration is selected
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7