r/pygame • • Mar 01 '20

Monthly /r/PyGame Showcase - Show us your current project(s)!

85 Upvotes

Please use this thread to showcase your current project(s) using the PyGame library.


r/pygame • • 3h ago

Added sound to my GameBoy Color emulator written in purely python and pygame (full handwritten)

11 Upvotes

Hello everyone, I wanted to update you on my GameBoy Color emulator I wrote with pygame! It has been an extremely fun project. I have used PyGame for the PPU (visuals) and the APU (sound). GameBoy Color emulation uses 18 bit surfaces with masks for rgb555 which the actual gameboy color uses. GameBoy emulation uses 8 bit surfaces with palettes. You can also set custom palettes for the GameBoy! I have used 44100 PCM for audio emulation. I use pygame's mixer to initialize 8 bit unsigned audio, then accumulate actual gameboy channel amplitudes (which are 4 bit) then feed buffers the averages. At each buffer fill, a sound object is generated etc. It is not the best at the moment but it works :D I plan to write documentation about the overall architecture.

And of course it is open source: https://github.com/atifcodesalot/hazelnut-gb-emu
Clone and play it yourself! Enjoy!

AI usage disclaimer: This is a handwritten project. AI was used only for debugging and disassembly of ROM's. No agentic code or AI generated code was used.


r/pygame • • 2h ago

[NEW RELEASE] V.1.27.1 EvergreenMeadows on itch.io

Thumbnail gallery
4 Upvotes

i have released the newest version 1.27.1!

The NEW THINGS:

  • Fixed Bugs and polished UI
  • Upgraded main menu
  • Improved performance
  • New intro screen

This game is currently on Sale! 100% off. its playable on Windows and Linux Fedora. feel free to check out: https://dreamdev1.itch.io/evergreen-meadows

[every feedback is a huge support for me!]


r/pygame • • 9h ago

Birds vs Bats: an arcade roguelite in pygame + numpy, with leaderboards verified by replaying every

Thumbnail gallery
9 Upvotes

I've been building Birds vs Bats, a roguelite drawn entirely in coloured text. It runs in a terminal or in a pygame window (pip install birds-vs-bats, then bvb).

Parts I think this sub might like:

- Leaderboards without a game server: a finished game is uploaded as a recording (seed, settings, every key with its frame time). A GitHub Actions job checks out the game's version tag, replays it headless, and ranks it only if it reaches the same score.

- Adaptive music rendered at runtime with numpy from a small sample bank: every bird kind in your flock adds an instrument, tempo follows your speed.

- A headless simulator and a bot with tunable skills, used to balance the game ("without a build you should die around world 3").

- PyInstaller builds for Linux, macOS and Windows, published by one workflow, plus an in-game updater that checks SHA256 sums before swapping the install.

Source: https://github.com/Onheiron/PY-birds-vs-bats - happy to answer questions about any of it.


r/pygame • • 17h ago

Ann3-2PO – Fun little arena shooter with a sneaky CPU… and now 2-Player Online! (Windows, free)

Thumbnail gallery
2 Upvotes

I just pushed a big update to Annihilators 3 (now Ann3-2PO) and wanted to share the latest version!

It’s a fast-paced 2D arena shooter with that classic 90s vibe — run around, shoot, dodge grenades, and try not to get obliterated by the heat-seeking bomb. Now with full 2-Player Online over a dedicated VPS relay, plus the scoring system that makes every match feel more rewarding.

What’s New / Highlights:

  • 2-Player Online Lobby Matching — Host or join matches over the internet. Real-time sync of positions, weapons, projectiles, grenades, heatbombs, explosions, and landmines through a dedicated VPS relay. Automatic version check so both players are on the same build.
  • Smart single-player CPU that still fights back — it collects weapons, dodges, and even goes into “panic mode” when you launch the heatbomb. It can still steal highscore spots with funny names like “Subservient Chicken CPU” or “Captain Cheapshot CPU”!
  • Scoring System — Body hits, headshots, grenade/landmine/heatbomb kills, and “perfect kills” all earn points. Chase your personal best!
  • Local + Global Highscores — Top 10 list with names, dates, and weapons. Optional global submit.
  • 2-Player Local (Hotseat) — Same-PC play still works.
  • Explosive heatbomb with screen shake + gamepad rumble
  • Grenades, landmines, blood splatters, and dramatic headshot close-ups
  • Multiple control options: keyboard (rebindable), mouse, or gamepad
  • In-game volume and mute that affect both SFX and background music

Completely free, no ads, no microtransactions — just pure chaotic arena fun.

Online matches require an internet connection to the relay server.

Links:

Would love any feedback!


r/pygame • • 1d ago

We built a 2D pixel-art platformer entirely in Python — no imported sprites

3 Upvotes

Hi r/PyGame! We're 8 people and we've been building Pitzkel with pygame-ce. The engine, levels, bosses, art, fonts and audio are all written in code — there are no imported sprite sheets.

The game renders at native 320×176 and runs on Windows, Android and the browser. It has 24 campaign stages, 100 levels in total, 300 challenges and a leaderboard.

Press kit with real frames and skins: https://pitzkel-game.netlify.app/press-kit.html Play in browser: https://pitzkel-game.netlify.app/play/index.html

Happy to answer questions about the parametric octopus drawing, the input layer or the save format. 🐙


r/pygame • • 1d ago

Inventories and crafting books were the most difficult part to programm so far

28 Upvotes

r/pygame • • 1d ago

Simple workflow using tilemap-editor

Thumbnail youtube.com
7 Upvotes

r/pygame • • 1d ago

Building a 1-Bit Platformer in Pygame and tilemap-editor — Part 2

Thumbnail youtube.com
4 Upvotes

r/pygame • • 1d ago

Implementing physics, camera, player-movement and animations - Part 4

Thumbnail youtube.com
2 Upvotes

r/pygame • • 1d ago

Flippin' Sketchy - Made a stripped back browser demo!

7 Upvotes

hey guys, been mostly working on assets and art the past few weeks, so far I've:

- completely redesigned the GUI so it is more in line with my art style

- created a comic book template and the first part of the story (the gif), for the .exe demo.

- started experimenting with moderngl and normal maps to shade the back and mid ground assets

- added a white outline to the board, kind of like a sticker so its easier to see

- added MANUALS! (:D) these are not perfect right now and need dialing in but they work!

-made a stripped back browser demo without normal map shading (moderngl is compatible with pygbag as far as i'm aware) BUT it has a live leaderboard!!

If you want to see the story properly and play through the tutorial, the .exe demo has all of that plus an extra WIP level, Rooftops.

If you want to check out the browser demo or .exe demo you can find them at :

https://rorythpsfan.itch.io/flippin-sketchy

if anyone gets a chance to play either and wants to give feedback I'd super appreciate that!!!


r/pygame • • 1d ago

Adding animation and player collision data with pygame & tilemap-editor - Part 3

Thumbnail youtu.be
1 Upvotes

r/pygame • • 2d ago

Working on background art

7 Upvotes

Hello. Here's how my game looks so far. I've improved the parallax effect and started working on some new art, currently looking for some inspiration , any suggestions or ideas are welcome.

Wishing you all a great day

NOTE: The game runs smoothly, recording the screen lowers the FPS


r/pygame • • 2d ago

wip game about ants 🐜🐜🐜

8 Upvotes

game is almost done, just needs a bit of tweaking, sfx, and music.


r/pygame • • 1d ago

How to make video like this with python?

Thumbnail vt.tiktok.com
1 Upvotes

r/pygame • • 1d ago

How to make video like this with python?

Thumbnail vt.tiktok.com
1 Upvotes

r/pygame • • 2d ago

I'm starting to make a sequel to the game.

7 Upvotes

I made this sketch today. I'll make a post soon as I finish the starting room of location 2.

If anyone hasn't seen the demo, you can find it on Itch, right here: https://ssoh-v1.itch.io/the-dungeon-of-god


r/pygame • • 3d ago

I built a 2D N-body gravitational solar system and accretion disk simulator from scratch in Python

Post image
9 Upvotes

Hey everyone,

I wanted to share a physics simulation project I built using Python and Pygame: a real-time 2D N-body solar system and accretion disk simulator.

Instead of hardcoding circular orbits, the simulation models true gravitational interactions, collision mechanics, and particle accretion between thousands of bodies in real time.

Key features:

  • Real-time N-body gravitational force calculations using Newton's law.
  • Dynamic particle merging and accretion (smaller dust particles clump together into larger asteroids and planetoids while conserving momentum).
  • Procedural nebula generation with randomized orbital speeds and chaos factors around a massive central sun.
  • Lightweight and smooth rendering entirely built from scratch with Python and Pygame.

I'll drop the link to the GitHub repository in the comments below. Let me know what you think or what orbital mechanics features I should add next!


r/pygame • • 3d ago

A little birthday game

Thumbnail reddit.com
0 Upvotes

I want to make a game for my boyfriend's birthday. Suggest some ai tools and give me some guidance on how and where should I start. I don't know anything about coding and I don't have much time.


r/pygame • • 4d ago

I updated the boss fight and it's more interesting now.

13 Upvotes

The update is already available on the game page. Enjoy testing and playing!

Link for game: https://ssoh-v1.itch.io/the-dungeon-of-god


r/pygame • • 5d ago

Spin and Shoot!

13 Upvotes

Or you're trapped in smoke, where Radar is your only friend.


r/pygame • • 5d ago

I built a lightning simulator in Python using Pygame!

Post image
9 Upvotes

Hey everyone! 👋

I wanted to share a small side project I've been working on: a Lightning Simulator built completely from scratch in Python using the Pygame library. The goal was to recreate realistic electrical discharge patterns and branching structures on a 2D canvas in real time.

Tech Stack: Python, Pygame

Features: Dynamic branching, smooth rendering, and interactive controls to trigger storms directly on screen.

I'm focusing heavily on building a clean portfolio of physics and simulation projects right now.

You can check out the source code and documentation on my GitHub repo: EventHorizon-dev/lightning-simulator-2d

I'd love to hear your thoughts, feedback, or any ideas on how I could optimize the rendering performance! Thanks for checking it out!


r/pygame • • 4d ago

Attack on Solar System (play on web browser)

Post image
1 Upvotes

Meu primeiro jogo em Python usando pygame sem ajuda de IA, no estilo do antigo arcade "space invaders" onde o objetivo é destruir todos os alienígenas invasores e expulsa-los de vez do nosso sistema solar. Começando pela Terra e depois Lua, Marte, Júpiter, Saturno, Urano, Netuno. São 21 estágios, além da fase do chefão no final de cada planeta.

PLAY ATTACK on SOLAR SYSTEM


r/pygame • • 6d ago Bravo

My demo game is done!!!

139 Upvotes

Today I completely finished with the game exactly 6 days ago I made a post here with this same game, in these 6 days I improved it and brought it to perfection and I really like how the demo looks now.If you like it, you can play it on my itch: https://ssoh-v1.itch.io/the-dungeon-of-god.

Thank you all for helping promote my project. I am very grateful to you and will try to release the release version of the game as soon as possible.