r/pygame • u/pcgoer • Oct 07 '26
r/pygame • u/grenskii • Oct 07 '26
im adding rebirthing to my game's next update
game name is hashtag yen, its free on itch.io!!!
update 0.2.0 coming out somewhat soon
r/pygame • u/MyFoolsDen • Oct 07 '26
motion2d - a small 2D motion library for Pygame (v1.0, with ten demos)
Hi all!
I've been building a small 2D motion library for the last few months and just finished v1.0. I wanted to share it, partly because it might be useful, and partly because the design decisions might be interesting to other people who've tried to build the same thing.
Movement looks a simple thing until the game grows. First it's just pos += vel * dt. Then it's acceleration, then gravity, then jumping, then collision, then a completely different object that moves nothing like the player. At some point moving an object has become its own system.
motion2d is my attempt to keep that system small. It provides motion primitives, and the game composes them into behavior. motion2d handles movement. The game handles collision and game rules.
The very basic way to use this:
from motion2d import Motion2D
player = Motion2D.top_down(pos=(100, 100), speed=300)
# Simple path: motion owns position
player.move_right()
player.update(dt)
# Or with your own collision:
delta = player.step_velocity(dt)
result = my_collision_resolver(player.position, delta)
player.position = result.positionThe library currently has three main motion models:
- SimpleMotion: straightforward/direct movement
- PlatformerMotion: horizontal intent + gravity
- TopDownMotion: full 2D intent-driven movement
- KinematicBody: the underlying engine, if you want to build your own
- Headings: Rotator, Facing, NoHeading
I built a series of demos while developing it, rather than designing the entire library up front. The later demos became increasingly useful as architectural tests, especially a platformer demo with external collision, state-machine-driven action phases, and velocity authority.
Repository: motion2d
Feedback welcome. If you've built something similar and made different choices, I'd be curious to hear why.
Note: The current motion2d implementation was written almost entirely by collaboration of AI (Deepseek, ChatGPT, Qwen, Grok and Gemini). Every design decision, the API surface, the boundary between motion and collision, the choice of contracts was driven by human judgment: I proposed, questioned, debated, and rejected, iterating through 3 full restarts until the library's shape was right.
The result is not AI-generated code in the sense of ask and copy, but it's the product of a long, deliberate design process in which AI was a tool for reasoning and implementation.
r/pygame • u/mefistofeles57 • Oct 06 '26
My pseudo-3D racer now runs in the browser (pygame + pygbag)
Cool Racing, my pseudo-3D arcade racer in Python + pygame, is now playable in the browser!
Getting it to run in WASM took a lot of optimization: cache tuning, adaptive framerate, real-time scaling with sprite clipping for the near plane, RLE and colorkey blits, and refactoring the heaviest parts of the renderer.
The browser version isn't perfect: it reaches 30 fps, while desktop runs comfortably at 60. It plays the same, but with some sound glitches and less smoothly.
Also new this week: a desert biome with a canyon section, and transitions between biomes.
Any feedback is very welcome!
r/pygame • u/Th3CooK • Oct 06 '26
I made a realistic hacking game build in pygame, where your only connection to your team is an IRC chat and CCTV cameras.
Hey everyone,
I’ve been solo-developing a hacker puzzle game called EchoNet, and I’m excited to share that a fully playable build is officially out and currently on sale!
I wanted to step away from the "Hollywood hacking minigames" and make something grounded. In EchoNet, you are dropped into a custom OS. You have to read through intercepted files, crack server passwords, and use actual terminal commands (connect, download, run, send) to coordinate with your NPC crew via an IRC chat.
But there is a psychological horror twist: The stress of the job actively drains your "Sanity" meter. If you don't manage your medication, “things” happening, your live CCTV feeds get corrupted, and you start experiencing intense audio/visual hallucinations while trying to beat the clock. The game is story oriented.
Features:
- Fully interactive terminal: Navigate file systems, upload bypass payloads, and breach BlackSite servers.
- Live CCTV Feeds: Watch your crew infiltrate physical locations in real-time.
- Dynamic Sanity System: Manage your stress or face severe consequences.
- Multiple Endings: Your choices under pressure during the final breach determine who lives and who dies.
🎮 You can grab it right now on sale on Itch.io here: https://thec00k.itch.io/echonet ⭐ It is also coming to Steam soon! A Wishlist helps me out massively: https://store.steampowered.com/app/5222620/EchoNet
I'd love to hear your feedback on the terminal mechanics and the atmosphere. Let me know if you manage to find the hidden backdoor IP😜
r/pygame • u/EasternTrajectory21 • Oct 05 '26
Looking for a comprehensive book for learning Pygame
I very recently made a post about a Pygame CE programming book by Ralf Adams, which is readable here: https://github.com/adamsralf/pygame_book/blob/main/00%20pygamece.pdf.
The issue is I can't read it on my laptop after 30 pages and I can't download it. Are there any other books as comprehensive as this one? I really wanted to download the Ralf Adams book after but my laptop isn't able to do this for some reason.
I have already read Invent Your Own Computer Games by Al Sweigart and Object-Oriented Python: Master OOP by Building Games and GUIs by Irv Kalb. I'm willing to spend up to £200 on a book that can just teach me how to make any kind of 2D game with Pygame. I'm frustrated with the apparent lack of options available in regards to Pygame game development.
r/pygame • u/EasternTrajectory21 • Oct 05 '26
Is The Ralf Adams Pygame Book Safe to Download? I'm Worried It May Contain Malware
I've recently completed Invent Your Own Computer Games With Python by Al Sweigart, and Object-Oriented Python: Master OOP by Building Games and GUIs by Irv Kalb. I discovered another book on the Pygame website called Introduction to Pygame-CE 2D Game Programming by Ralf Adams, and I want to use this book because it goes into more detail on how to create a greater variety of 2D games than the aforementioned book by Al Sweigart.
I've tried using the Ralf Adams book on Github with my low spec Chromebook, but it crashes my laptop. I want to download it, but I'm concerned it may contain malware. I do have another laptop that is far more capable than my Chromebook, but I use it for sensitive purposes and I don't want to expose sensitive data to something that could potentially be malicious. I also prefer my Chromebook to my Windows laptop because it's a smoother and faster experience in regards to downloading Python and using it.
Has anyone else used this book? Here's the link to it: https://github.com/adamsralf/pygame_book/blob/main/00%20pygamece.pdf
r/pygame • u/yikespikes • Oct 04 '26
Ferrite Runner - made with Pygame-ce
https://store.steampowered.com/app/5216620/Ferrite_Runner/
Fully single-threaded, CPU-only blitting. GPU rendering was attempted but the bandwidth and numpy added too much frametime. Two layers, a pixel layer for heavy effects, and a HD layer for pixel pushing. Fluid dynamics, lighting approximations used. At ~50,000 LoC Ferrite Runner is still in Early Access and we will be developing on. No In-app purchases, no in-game advertisments, promise.
r/pygame • u/BobsMyNeighbor • Oct 03 '26
i made a video about shaders in pygame
youtube.comr/pygame • • Oct 03 '26
Making my first Steam game with Pygame
The game will be 100% free to play and I use it as a learning opportunity for my future games.
Steam Page: https://store.steampowered.com/app/5349900/Mystic_Fog_Maze/
r/pygame • u/Puzzleheaded_Card625 • Oct 02 '26
Portal System on my mmorpg
I’ve created another system for my MMORPG; it’s not just an ordinary portal—it’s deeply tied to the game's core lore. The server is up, and testers are welcome. Just a reminder: this isn't the official game world yet; I’m currently focusing on building the systems.
If you’d like to know more about the project, leave a comment below. Feel free to share your feedback.
r/pygame • u/p1geondove • Oct 02 '26
saw a youtube video and tried to replicate it
i saw a video about percolation. do i fully understand whats going on? no. is it optimized? hell no xdd. took me way too long to find a proper way to walk the net, but it kind of turned out fine. also tried to use numpy to optimize it, but the way i used it is indistinguishable from python normal lists... well whatever, it works
r/pygame • u/VirusMission9156 • Oct 02 '26
Polygon Collision in pygame?
Is polygon collision(including smooth slope movement) slope collision useful to you, Or is rect collision with overlap penetration enough ? Roughly these info per collision.
Just asking to know if people use such collisions in pygame.
Not to confuse between ground_normal and ground angle: ground angle is useful in case sloppy tiles when speed has to be increased/decreased as:
if direction * ground_angle is positive -> climbing
elif negative -> walking downward the slope

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
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/VellumMuse • Sep 29 '26
Yet Another Chess Game
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
youtu.beHey 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/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/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
’[ 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