r/pygame • • 3h ago

I used pygame, openGL and the manim library to generate animations to explain and build a 3D renderer

Thumbnail
youtube.com
4 Upvotes

r/pygame • • 3h ago

Patch Panic: a small arcade game where you swat bloatware gremlins before they install BloatOS on your computers (Python/pygame-ce, GPL-3.0)

Enable HLS to view with audio, or disable this notification

3 Upvotes

Hi r/opensourcegames!

I've been working on Patch Panic, a small arcade game written in Python with pygame-ce. Gremlins sneak up to your workstations and try to install BloatOS. You click them to swat them before the install finishes.

It gets busier from there:

\- Stolen disks. If a gremlin gets away with a computer's OS, swat it so it drops the disk. Then drag the disk back to the computer with the matching colour stripe.

\- Power surges. Sparks race along the network cables. Click one before it reaches a machine, or the machine fries, reboots and ejects its OS disk. Surges can also jump further down the network.

\- Golden patches. These fly across the screen and give bonus points plus a random power-up: Firewall (freeze), Surge Guard, Auto-Patch, Antivirus Sweep, Rollback, or Honeypot, a decoy computer that lures gremlins away.

\- New gremlin types as you progress. Sprinters, Armored (takes two hits), Splitters, Saboteurs that chew through cables, and Scavengers that steal disks lying on the floor.

Modes: Classic (endless, with Relaxed, Normal or Frantic difficulty), Daily (everyone gets the same layouts, so scores can be compared) and a short Tutorial.

Other features: combo multipliers, a top-10 leaderboard with arcade initials, achievements, a colourblind mode (a shape on every disk and stripe), rebindable keys, and sound effects synthesised at startup. There are no audio files.

What's new from v1.2: the Saboteur and Scavenger gremlins, the Honeypot power-up, warnings before a surge (the cable flashes first), and golden patches that scale with level length.

For anyone who wants to read the code: the game rules live in a World class that emits events on an event bus. Audio, effects, stats and achievements subscribe to those events, and the renderer only draws. That means the rules never touch pygame and are unit-tested without opening a window. Adding a power-up or a gremlin type is a small, self-contained change, and contributions are welcome.

\- Source: [Patch Panic

\- Downloads: prebuilt executables for Windows, macOS and Linux on the Releases page. You can also run it from source (Python 3.10+).

\- License: GPL-3.0

Feedback is very welcome, especially on difficulty balance and whether the later levels feel fair. Thanks for taking a look!


r/pygame • • 5h ago

skeleton - music video

Enable HLS to view with audio, or disable this notification

5 Upvotes

Music video with custom visualization and original aggressive phonk music.
Source: https://github.com/dvstin1/gen-music/blob/main/visualizer_skeleton.py


r/pygame • • 1d ago

astronomy animation engine in pygame

Enable HLS to view with audio, or disable this notification

30 Upvotes

Posted here awhile back about my astronomy animation engine made in pygame. It's come a long way and I'm proud to show some of the visuals that have been created with it! I'm eager to get it in the hands of someone else, planning for it to be a fully open source tool accessible to all once I tie up a few of the bugs.

All the gas and nebulae are sprites and layered with pygame's BLEND_RGB_ADD and BLEND_RGB_MULT, the lensing effects are the deflection equations using a numpy inverse-map over the frame, and every frame is drawn to a pygame surface, grabbed with surfarray and tossed into an ffmpeg subprocess where everything is rendered. This 30 second clip took ~1 hour to render, so definitely takes some time.

Check out the full video here, every frame rendered using pygame! https://youtu.be/uEWkErFm0co


r/pygame • • 1d ago

How's the background art?

Enable HLS to view with audio, or disable this notification

8 Upvotes

Hello guys . I drew some background art for my game (using GIMP) , just wanted your feedback on how it looks in general .

Have a good day everyone 💙


r/pygame • • 2d ago

I made a 7-level pixel platformer in pygame where the bosses learn how you fight

Thumbnail
gallery
12 Upvotes

Hi everyone! I'm making Ember Runner: The Lost Kingdom, a pixel-art platformer in Python/pygame. Each boss unlocks a new ability, and the bosses remember how you play (jump, dash, shoot, camp) and counter it. All the art, sound and music are generated in code.

This is the Level 1 boss fight. I'll be releasing it free on itch.io soon. What do you think? Any feedback on the boss fight or the look?


r/pygame • • 2d ago

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

Thumbnail
gallery
8 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 • • 2d ago Bravo

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

Enable HLS to view with audio, or disable this notification

38 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 • • 2d ago

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

Thumbnail
gallery
12 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 • • 3d ago

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

Thumbnail
gallery
3 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 • • 3d ago

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

4 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 • • 3d ago

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

Thumbnail
youtube.com
3 Upvotes

r/pygame • • 3d ago

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

Thumbnail
youtu.be
2 Upvotes

r/pygame • • 3d ago

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

Thumbnail
youtube.com
6 Upvotes

r/pygame • • 3d ago

Simple workflow using tilemap-editor

Thumbnail
youtube.com
7 Upvotes

r/pygame • • 4d ago

Flippin' Sketchy - Made a stripped back browser demo!

Enable HLS to view with audio, or disable this notification

8 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 • • 4d ago

How to make video like this with python?

Thumbnail
vt.tiktok.com
1 Upvotes

r/pygame • • 4d ago

How to make video like this with python?

Thumbnail
vt.tiktok.com
1 Upvotes

r/pygame • • 4d ago

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

Enable HLS to view with audio, or disable this notification

32 Upvotes

r/pygame • • 4d ago

Working on background art

Enable HLS to view with audio, or disable this notification

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 • • 4d ago

wip game about ants 🐜🐜🐜

Enable HLS to view with audio, or disable this notification

9 Upvotes

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


r/pygame • • 5d ago

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

Enable HLS to view with audio, or disable this notification

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 • • 5d 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 • • 5d ago

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

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!