Tutorial Reference: The ultimate introduction to Pygame
Followed the tutorial to make the Runner game using PyGame.
Before continuing, make sure Python 3.9 (or later) is installed. Git is optional but recommended to be installed. If Git is not installed, the project can still be downloaded as a zip file from GitHub.
-
Download and navigate to the folder
$ git clone git@github.com:AlkaffAhamed/Runner-PyGame.git $ cd Runner-PyGame
-
Create virtual environment
$ python -m venv venv
-
Activate the virtual environment
# Windows $ venv\Scripts\activate # Linux/MacOS $ source venv/bin/activate
-
Install PyGame
$ pip install pygame
-
Run
main.py
$ python main.py
-
Deactivate the virtual environment
$ deactivate