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 • • 1h ago

Need help with renpy's pygame coding.

1 Upvotes

Hi everyone, I am your average renpy coder and visual novel enjoyer. I have been learning renpy for about 2 years. Now I am learning some advance stuff on renpy. now I want to make my own mini-game. which needs knowledge about Creator-Defined Displayables which need pygame knowledge. I know python but never did anything pygame and I am a bit lost here so does anyone have any beginner guide.


r/pygame • • 4h ago

[EvergreenMeadows] Working on adding body temperature to my game

1 Upvotes

this game is avaliable on itch.io for windows and Linux (Fedora). BUT this clip is from the version what is currently under development :)

feel free to check out!: https://dreamdev1.itch.io/evergreen-meadows


r/pygame • • 1d ago

I used Pygame to build a radio simulator — testing out a Tesla coil!

28 Upvotes

Got hooked on Pygame too — turns out it’s not just for games! Check out what you can actually pull off with it. You can literally build a Tesla coil in here!!

Packed it with a library of real-world parts and live oscilloscope waveforms so you can watch everything react in real time. Not gonna lie though, pure Python totally choked on the sheer amount of math, so I had to build a native DLL just to crunch the numbers and keep Pygame running buttery smooth. Worth the headache!

Figured maybe someone here finds it useful? (Dropped the Windows build link in the comments if anyone feels like messing around with it.)


r/pygame • • 1d ago

Using pygame for RF ADS-B plotting (Passive Radar Interface, mercator)

7 Upvotes

Another example I made using the same pipeline but with an cosmetically enhanced interface.

github: https://github.com/TheBarret/PRad

The codebase it is a little out dated, but the core principle still works today, with a cheap RTL ($30 bucks or so) you can 100% become your own air-traffic recorder or passive radar observatory.

USB based RTL devices: https://www.rtl-sdr.com/about-rtl-sdr/

The math to equate these distance and coordinates, I used the Mercator projection to plot down the active beacons (transponders), these locations are relative, the ads-b beacon sends a ton-load more of vectors to plot more details if you wish. This example script only demonstrates how it works in sequence with a servicer called dump1090-mutability found at:

https://github.com/adsb-related-code/dump1090-mutability

(This is the de-modulator for the 1090Mhz ads-b signals, it does the heavy lifting for us)

I hope you enjoy the show&tell, everything is open source!


r/pygame • • 21h ago

How do I go about doing animations in Pygame?

2 Upvotes

At first I thought I could just draw a simple mp4 video on screen, but even that seemed a little complicated and not the most effective way to do it. Does anyone have any advice and/or guidance? Preferably something simple to grasp as I am still learning Pygame. Thanks a bunch!


r/pygame • • 1d ago

I've spent a few years building a place for solo devs to ship games that run anywhere. Honest opinions?

Thumbnail appsudo.com
1 Upvotes

r/pygame • • 1d ago

I bit off more than i can chew :)

7 Upvotes

My programming class has reached its final project and I thought it would be a neat idea to recreate asteroids from the Atari. However, this programming class is only a semester long focusing on python and we have only gotten to functions. Silly me thinking that with my current knowledge of python I could create this game, but I am already to deep. See, we had to make a 5 page essay on what we will be making and I am not about to redo that.

So here I am watching an 11 hour video titled "master python by making 5 simple games". At this point it probably would be easier to redo the essay... but I am too invested haha. My own ego is making me persevere and accomplish this task😭.

On the bright side however I've always wanted to make a game so this will be my first one.

Do any of you have any tips for learning pygame for the first time? Any advice would be helpful


r/pygame • • 1d ago

[EvergreenMeadows] I upgraded UI animation a little

8 Upvotes

this game is avaliable om itch.io for windows and Linux (Fedora). BUT this clip is from the version what is currently under development :)

feel free to check out!: https://dreamdev1.itch.io/evergreen-meadows


r/pygame • • 1d ago

when the ssh drops

1 Upvotes

r/pygame • • 1d ago

Pygame in web

2 Upvotes

source:https://pyodide.org/en/stable/usage/packages-in-pyodide.html
Just found about Pyodide, it actually supports pygame-ce-2.5.7 in browser.


r/pygame • • 2d ago

i just released a FREE short game about ants on itch.io

Thumbnail grenski.itch.io
3 Upvotes

go check it out, its quite short but i think the gameplay loop is pretty addicting


r/pygame • • 3d ago

Just chilling a bit

32 Upvotes

r/pygame • • 2d ago

Attack on Solar System V.0.5.0-beta

14 Upvotes

Meu primeiro jogo 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. Versão beta para jogar direto no navegador:

Attack on Solar System


r/pygame • • 3d ago

Ported my game from Pygame to Raylib.

5 Upvotes

Feels like jumping from an old horse onto a fresh stallion.


r/pygame • • 4d ago

skeleton - music video

21 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 • • 4d 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)

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

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

Thumbnail youtube.com
10 Upvotes

r/pygame • • 5d ago

astronomy animation engine in pygame

36 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 • • 6d ago

How's the background art?

13 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 • • 6d ago

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

Thumbnail gallery
16 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 • • 6d ago Bravo

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

49 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 • • 6d ago

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

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

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

Thumbnail gallery
14 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.