Using Replit

Replit is an in-browser IDE that supports many programming languages, including Python. It also has special support for PyGame projects.

If you wish to use this PyGameZero Tutorial inside Replit you can follow this brief set of instructions:

  1. Create an account

  2. Create a new PyGame project

  3. Click on the Shell tab and run: pip install pgzero

  4. Add folder images

  5. Place whichever images you need for your game in the images directory

  6. Write your code in the file and Run

The first time you run the program it will take some time to resolve dependencies from the PyGameZero package.

NOTE: Make sure to size the Game Window to fit the entire game (max game area is 800x600)