- Pygame:
-
Windows Installation
python -m pip install -U pygame
-
MAC Installation
create a virtualenv called 'anenv' and use it. python3 -m virtualenv anenv . ./anenv/bin/activate venvdotapp helps the python be a mac 'app'. So the pygame window can get focus. python -m pip install venvdotapp venvdotapp python -m pip install pygame
-
python firstGame.py
-
Player 1 : ARROW_UP = Jump ARROW_DOWN = Shoot ARROW_LEFT & ARROW_RIGHT = MOVE
-
Player 2 : Z = Jump S = Shoot Q & D = MOVE