GhostBusters is a small platformer game made with Pygame.
The game features tile-based physics, smooth scrolling, and parallax animations for a retro-style gaming experience.
Just double-click the executable file to launch the game!
(The
.exewas created usingpyinstaller— special thanks to CODE WITH RUSS for his helpful video on the topic.)
-
Install the latest version of Python in your system along with pip3
-
Install the
pygamemodule by running :pip install pygame
You can do this, either by :
-
Downloading this repo as ZIP (from here) and extracting it.
OR
-
Running this command in terminal within some directory in your system :
git clone https://github.com/WhiteJadeWolf/Ghostbusters
-
To start playing, you can either:
-
Double-click the executable file
(Created usingpyinstaller)OR
-
Run
main.pyfrom your terminal or code editor :python main.py
-
🔔 Note: I'm currently developing a package/module for this game that will be installable via pip. Once installed, you’ll be able to start playing by simply running the provided executable file.
Your goal is to reach and complete the final level to win the game. Each level increases in difficulty and brings new challenges.
Throughout the game, you’ll encounter various ghosts that you must defeat.
Be careful — if you're killed, you'll have to restart the game from the beginning.
Running low on health?
Keep an eye out for potion jars placed throughout the levels.
Collecting them will restore your health and improve your chances of survival.
| Action | Key(s) |
|---|---|
| Move Left | ← Arrow or A |
| Move Right | → Arrow or D |
| Jump | ↑ Arrow or W |
| Shoot | space |
| Throw Grenade | G |
| Exit Game | ESC |
You can access the level editor in two ways :
-
Click on Level Editor from the main menu.
OR
-
Run
level_editor.pyorlevel_editor.exe.
- Starts with Level 4 by default to avoid accidental edits of existing levels.
- The blank tile in the sprite selector acts as an eraser.
- To load an existing level's map:
- Use the
<-and->buttons at the bottom right. - Select the desired level and press LOAD.
- Use the
- Saving will overwrite the selected level's map.
- Use arrow keys to scroll along the map.
- Once done with designing, press SAVE.
To play the level you just created:
- Open
main.pyin a code editor. - Change the
levelparameter to your new level number. - (Optional) Add your level to the queue by updating the
MAX_LEVELparameter accordingly.
-
Make sure you have the latest version of Python installed on your system.
-
pipis usually included with Python and is required to install modules. -
The game requires the
pygamemodule, which can be installed using :pip install pygame
-
Ensure that all files and assets are placed in their correct relative paths.
-
To create your own levels, use
level_editor.exe. -
The leaderboard only records completed runs (all 3 levels by default).
-
I'm currently developing a package/module for this game that will be installable via
pip. Once installed, you’ll be able to start playing by simply running the provided executable file.
If you'd like to contribute to this project voluntarily,
please check out the CONTRIBUTING.md file for guidelines.
Thank you for checking out my small project. ❤️ Hope you enjoy the game! 🎉
PS - Please STAR ⭐ this Project to show your support

