Basic pygame template to quickly make a game and learn.
Use example-basic.py and example-advanced.py to mess around and learn what they are doing, and how they are doing it. Use template.py as a starter template to make your own games. Nothing is set in stone, so experiment.
- Pygame docs: [https://www.pygame.org/docs/]
- Explanation Notebook: [https://github.com/mishnea/PyWeek-Explain]
- Make sure you have Python 3.8, Git, and a proper editor/IDE (I recommend VSCode)
- Right click in the folder that you want the repo, and click 'git bash here'
- Run the command
git clone https://github.com/mishnea/pygame-test
- Close Git and navigate to the top level of the repo
- Hold shift + right click, and click on 'open powershell window here'
- If the option isn't there, open powershell via Run >
pwsh
or however you want, and run the commandcd <path to the repo>
- If the option isn't there, open powershell via Run >
- Run the following in order
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -m requirements.txt
You should now have all of the files, and a virtual environment with pygame.