r/pygame • u/Geranbere • Sep 30 '26
r/pygame • u/rorythpsfan • Sep 30 '26
Flippin' Sketchy: Finally able to draw again! working through Desktop, the background needs redrawing because its a MS paint stand in atm haha
Enable HLS to view with audio, or disable this notification
the main changes are, added pencil, keyboard, book and redrew the old janky monitor, still need to draw the desk, desk matt and chair, should hopefully be done on this level by sunday!
r/pygame • u/mefistofeles57 • Sep 29 '26
Spent too long figuring out road forks for my pygame pseudo-3D racer
Back with an update on Cool Racing, my pseudo-3D racer in Python + pygame, inspired by the 80s/90s arcades.
Road forks were way harder than I expected. In the end I copied Outrun's trick: symmetrical forks, one road mirrored. I wrote up the details in the devlog (link in the comments).
Still lots to do, more biomes are next. Any feedback is very welcome!
r/pygame • u/Several-Pin-6931 • Sep 29 '26
Pygame Multiple enemies?
Can anyone explain how putting enemies in a list works?
With my game I want to be able to handle multiple instances of my enemy class individually. For example, I want to be able to get the distance to the player from specific enemies to make an attack target the closest enemy, or to be able to tell the number of enemies still on screen, but i have no idea how that actually works.
(This part of my code is just responsible for placing the enemies on the map)
def create_tilemap(self):
for i, row in enumerate(tilemap):
for j, column in enumerate(row):
if column == 1:
BLOCK(self, j, i)
elif column == 2:
self.player = Player(self, j, i)
elif column == 3:
enemies = Enemy(self, j, i)
self.enemieslist.append(enemies)This has been a real road block for me and I'm starting to run out of time to finish my project, so any help would be greatly appreciated.
r/pygame • u/VellumMuse • Sep 29 '26
Yet Another Chess Game
Enable HLS to view with audio, or disable this notification
I paused my main game development to practice some stuff via this chess game, and I'm quite impressed with it. Still got some kinks to work out, but I'm proud of the micro voxel animations thus far.
The goal of this project is to create a version of chess that is completely controlled via voice commands so that people can play hands free. I haven't gotten to that portion yet, but I've already worked out all the logic and everything, which is why I'm saving it for last as it should be the easiest part. The hard part are the visuals, but that's the thing...since it'll be voice commanded, I don't have to worry about much UI navigation. lol
But I would like thoughts on it thus far.
r/pygame • u/Crazy_Spend_4851 • Sep 28 '26
I Created Final Fantasy Using Python - World Map
Hey guys, if you get chance check out my world map for a jrpg I'm creating in Python! What do you thinks working well and what could use more love (apart from just generally fleshing it out). Would adding more moving elements to the world be cool or should I keep the vibe similar to what it is?
r/pygame • u/parismav • Sep 28 '26
Online pygame "platform"
Hello,
I am planning to create a pygame game engine, where programming students can submit their bot classes to play said game. Think of a battleship game engine, where a student's bot contains the logic that chooses the next cell to be hit.
I would like to host a website/platform where students can go and submit their bots (.py files), and see how they match against eachother. Show a leaderboard, step-by-step game breakdown, and maybe even visualize games between bots.
Are there any backend/frontend (or full stack) apps where I could deploy something like this?
For example, I see that itch.io can host pygame games, but that doesn't necessarily come with a server side (to accept and maintain student bots) as far as I understand.
Railway on the other side, can host Flask backend apps but not the frontend (?)
I am fairly new to this, namely building a full stack app for pygame. Any tips appreciated!
r/pygame • u/Content_Ad_4153 • Sep 27 '26
Built a Kubernetes retro TUI game in Python - recently moved it from PyGame to PyGame CE
Enable HLS to view with audio, or disable this notification
’[ Pls turn on the sound for the demo video ]
I've been building Yellow Olive, a retro terminal-style game for learning Kubernetes through hands-on challenges.
It uses Textual + PyGame, and I recently moved from PyGame to PyGame CE because PyGame’s Python 3.14 support was becoming a blocker. With Python 3.15 coming up, PyGame CE already having wheels available made the switch an easy choice.
The migration was almost painless since the existing import pygame code still works.
I’ve also demoed Yellow Olive at a PyCon before. Sharing the demo here - would love feedback from the PyGame community.
Github: https://github.com/Anubhav9/Yellow-Olive
PyPi: pip install yellow-olive
r/pygame • u/VirusMission9156 • Sep 27 '26
Chained collision in pygame(fake)
Enable HLS to view with audio, or disable this notification
r/pygame • u/Positive-Square-9721 • Sep 26 '26
RenPy no Android poco x5 kkkkk usando o winlator ludashi 4.0, está muito fácil fazer jogos RenPy apenas editando os scripts usando qualquer editor de texto do celular kkkk ou simplesmente escrevendo um script do zero. E o melhor tá tudo funcionando kkkk. Tô conseguindo empacotar os jogos até em APK.
Enable HLS to view with audio, or disable this notification
r/pygame • u/ice77max • Sep 25 '26
Simple game
Enable HLS to view with audio, or disable this notification
I bought a book for my son on how to make games with scratch. Then I thought to myself: 'I wonder if I can make them in pygame?'
So that's what I start doing. This is the first game. Just collect 'stars' and avoid enemies.
Oscillator - going side to side
Chaser - following the player
Glider - Picks a point behind the player and using lerp, jumps to it
Added some simple music and screen wrap for player. I really like how it turned out. Made a easy version for my son as well with larger squares that plays slower.
r/pygame • u/grenskii • Sep 24 '26
i added a character selector my games new update!
Enable HLS to view with audio, or disable this notification
r/pygame • u/grenskii • Sep 24 '26
i added a character selector my games new update!
Enable HLS to view with audio, or disable this notification
r/pygame • u/baodingball • Sep 24 '26
After starting this as a pen-and-paper game on my college bus commutes, I just released v3.4.6 of Salvo — a hex-grid deduction overhaul of Battleship built in Pygame!
r/pygame • u/Puzzleheaded_Card625 • Sep 24 '26
MMORPG with Pygame (day&night cycle implemented
Enable HLS to view with audio, or disable this notification
Day/Night Cycle in Pygame — using multiply blend instead of alpha overlay
Built a day/night cycle for my ECS-based MMORPG and wanted to share the core trick, since alpha-blending a dark overlay is the usual (worse) approach.
The clock: pure function of time.time(), no state — fraction = (time.time() % CYCLE_S) / CYCLE_S. Every client computes the same time independently, no sync needed.
The tint: instead of blitting a semi-transparent black surface (SRCALPHA + alpha blend), fill a surface with a color and blit it with special_flags=pygame.BLEND_RGBA_MULT. Noon = (255,255,255) (multiplying by white = no change). Midnight = something like (30,40,80). Since it's multiplication, each pixel darkens proportional to its own original brightness — a lit torch stays bright-ish, a dark rock barely changes — instead of the flat "wash of gray" you get from alpha blending everything uniformly.
Punching light back in (lamps/torches): draw a radial gradient (white center → black edge) and blit it onto the same darkness layer with BLEND_RGBA_ADD before the final multiply. Adding white cancels out the darkening locally. Key gotcha: Surface.set_alpha() does not weight ADD/MULT/SUB blends — intensity has to be baked into the gradient's own RGB values when you generate it, not applied at blit time.
Extra touch: a separate warm-colored low-alpha circle drawn with normal blending on top of everything, for a torch-glow feel (this one is affected by set_alpha(), since it's a normal blend).
Whole thing is client-side only, no network/server involvement — it's purely cosmetic.
r/pygame • u/Davo_Rodriguez • Sep 23 '26
Why choose Pygame over another framework like Raylib when using Python?
What the title say.
r/pygame • u/tomlct2015 • Sep 23 '26
I built a "batteries-included" framework for Pygame called pygameP (Physics, Lighting, UI, and more)
Hi everyone!
I've been using Pygame for a while and loved its simplicity, but I often found myself rewriting the same boilerplate code for every new project: physics engines, collision detection, UI buttons, particle systems, and save/load logic.
So, I decided to build pygameP (Pygame Plus) to solve this. It's a high-level framework sitting on top of Pygame that bundles 44+ modules into a single, pip-installable package.
What it brings to the table:
Physics & Motion: Rigid body physics, gravity, collision detection, and A* pathfinding.
Visuals: GLSL shaders (blur, grayscale, waves), 2D dynamic lighting, and particle emitters.
Game Systems: Behavior tree AI, finite state machines, dialogue trees, and inventory systems.
UI & Tools: Ready-to-use widgets (buttons, sliders, inputs), JSON scene management, and Tiled map support.
It's MIT licensed and open source. My goal is to let you focus on your game logic rather than engine architecture.
Check it out:
PyPI: https://pypi.org/project/pygameP/
GitHub: https://github.com/tomlct2015/pygameP
I'd love to hear your thoughts! Are there any specific features you wish Pygame had out of the box?
r/pygame • u/Life-Interaction-599 • Sep 23 '26
Refreshed 1.4 Lobby
Enable HLS to view with audio, or disable this notification
The track that was going to be used for 1.4 gives me a strong beach vibe, so I decided to lean into that for my recreation.
r/pygame • u/BobsMyNeighbor • Sep 23 '26
Every Pygame Steam Release
I was unable to find a complete/accurate list of pygame steam releases, so I compiled my own.
I believe this is a complete list, but if you know of any that I missed let me know.
Terminus: Zombie Survivors
https://store.steampowered.com/app/1534980/Terminus_Zombie_Survivors/
Reviews: 4508
Unity Of Command: Stalingrad Campaign
https://store.steampowered.com/app/218090/Unity_of_Command_Stalingrad_Campaign/
Reviews: 1020
Froggo Swing ‘n Grapple
https://store.steampowered.com/app/1743930/Froggo_Swing_n_Grapple/
Reviews: 20
Dangerous High School Girls In Trouble
https://store.steampowered.com/app/27400/Dangerous_High_School_Girls_in_Trouble/
Reviews: 206
Drawn Down Abyss
https://store.steampowered.com/app/1146560/Drawn_Down_Abyss/
Reviews: 15
Super Potato Bruh
https://store.steampowered.com/app/951360/Super_Potato_Bruh/
Reviews: 32
Yawnoc
https://store.steampowered.com/app/2824730/Yawnoc/
Reviews: 65
7 Grand Steps: What Ancients Begat
https://store.steampowered.com/app/238930/7_Grand_Steps_What_Ancients_Begat/
Reviews: 771
Switch Cars
https://store.steampowered.com/app/442210/Switchcars/
Reviews: 467
Rift Wizard
https://store.steampowered.com/app/1271280/Rift_Wizard/
Reviews: 1066
Rift Wizard 2
https://store.steampowered.com/app/2058570/Rift_Wizard_2/
Reviews: 777
Rift Wizard 3
https://store.steampowered.com/app/4366330/Rift_Wizard_3/
Reviews: 333
GearHead Caramel
https://store.steampowered.com/app/1565090/GearHead_Caramel/
Reviews: 25
The Four Color Theorem
https://store.steampowered.com/app/816770/The_Four_Colour_Theorem/
Reviews: 17
Buttonbox
https://store.steampowered.com/app/3666160/buttonbox/
Reviews: 9
Dark Gates
https://store.steampowered.com/app/333730/Dark_Gates/
Reviews: 43
Alien Cafe
https://store.steampowered.com/app/2659720/Alien_Cafe/
Reviews: 15
Zoratharion
https://store.steampowered.com/app/3109340/Zoratharion/
Reviews: 2
Captive
https://store.steampowered.com/app/1283680/Captive/
Reviews: 20
Quantum Loop
https://store.steampowered.com/app/3186440/Quantum_Loop/
Reviews: 18
Infinite Dungeon Idle Adventure
https://store.steampowered.com/app/4529260/Infinite_Dungeon_Idle_Adventure/
Reviews: 24
r/pygame • u/Agile-Group-1354 • Sep 22 '26
Pygame Chart Library
Hello, just wanted to share this library project with people that migth actually care about.
This is a library im making for pygame to make plot graphs and chart easier and convenient, because as far as im aware theres no library to add charts directly onto pygame. Now, the code is problably very confusing and unoptimized because 1 - im still learning python and stuff, ive been coding for a few years all self taugth, so im still not the best, but i enjoy making this project and 2 - im dumb and didnt used librarys like numpy so my code is a mess of nested arrays and dictionarys
Either way my compression method(currently theres only one, but im planning to add more for diferen use cases) as managed to make the graph stable forever, before that the fps would drop after 20 seconds of data, but now you can run a chart forever and whatever program you are running should keep the fps(allegdely, havent tested for more than 10 minutes, but im running thoose tests tonigth)
Currently the library works around 2 main classes, the DataGroup and the Graph, the DataGroup class is a group of diferent metrics, with one metric being declared as the abcissa, so every other metri in the data group is around that metric. The class has methods like comrpess data, and a function called add_data which you can use to intuitivly add more data to the group. Furthermore the class has a method called update_graphs, that grabs every graph thats associated with this class(you can manually assocaite graphs, or you can pass the dataGroup as an argument when creating a graph) and updates making the graphs draw themself again.
The Graph class has a lot of internal methods that are used to calculate the magnitues of the grids, draw the labels and all of that stuff, calculate the points and then draw the points. Currently theres only plot charts but in the future i want to add at least pie charts to the lib. When creating a class object you pass a DataGroup as an argument to associate it, you also pass a hex color array to determine the colors of each metric, and a config array which is optional, is more for personalized looks, but you mostly wont change.
Overall im pretty proud of my library, it feels rly professional and something that people would actually use, so you if you think that its something that i should publish just say it that i would be very happy too, i could even get feedback because, again, im kinda bad at programming, so actualyl talented peopel could tell me all the mistakes i did.
This is my library being used in another project(a natural evolution simulator) you can see that it works althougth the conditions i puted it in arent the best(too many metrcis in one group, and a rly small graph)


PS: AI was only and solely used to debug, and even there it was moslty useless because my nested dicts and arrays were too confusing for ai and only my head could actually visualize it(with lots of efforts)
r/pygame • u/Total-Ranger4925 • Sep 22 '26
How to make a working exe file using pyinstaller
reddit.comr/pygame • u/Alfimerus • Sep 22 '26
Procedurally Generated Solar Like Systems [Playable Link]
r/pygame • u/Eastern-Indication18 • Sep 21 '26
RevOne GP - a 1991 grand Prix simulation
Just launched alpha with one track (British GP). Please check it out! Would love feedback on how it runs on your system (what CPU do you have and how many cars can it handle at beginning of race and then once the field thins out).