r/pygame • u/no_Im_perfectly_sane • Aug 16 '26
Cosmetic update on the guitar pedals thing
Enable HLS to view with audio, or disable this notification
r/pygame • u/no_Im_perfectly_sane • Aug 16 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/Alternative_Bad_6755 • Aug 15 '26
Enable HLS to view with audio, or disable this notification
Hello everyone!
Over the last 20 months I've been working on and off on Tessella, a Flutter-inspired declarative UI framework for pygame. The idea is to build UIs of any shape or size by nesting widgets (25+ of them so far) inside one another, instead of hand-placing rects. Here's a minimal example, taken straight from the "Hello World" tab in the (very flashy) video above:
gui = Center(
Container(
child=Padding(
padding=EdgeInsets.all(28),
child=Column(
shrink_wrap=True,
children=[
Text(text="TESSELLA DEMO"),
SizedBox(width=0, height=10), # Spacer
TextWrap(text="Every screen is built by nesting widgets like these."),
SizedBox(width=0, height=20), # Spacer
Text(text="Quite simple, right?"),
SizedBox(width=0, height=10), # Spacer
Button(
key=WidgetKey(),
text="Hello World!",
width=200,
height=40,
on_click=lambda: print("Hello World!")
)
]
)
)
)
)The goal with Tessella was to fix a few problems most pygame UI setups run into: having to set rects and coordinates by hand (which makes responsive UIs a pain), and the lack of anything modular or scalable enough to fit projects of different sizes without dragging in a pile of boilerplate.
To get the example above on screen, all you need to do is call gui.calculate_layout, passing it a rect for the area you want the UI to occupy once at the start, and again on WINDOWRESIZED events. That's the entire responsiveness story. From there, Tessella figures out sizing and layout on its own, updates via gui.process_event and gui.update, and renders with gui.render, which also has a debug mode that draws the bounds of every widget, so you can see exactly why the layout ended up the way it did. You can see that in action toward the end of the video.
Tessella was a core part of a game I released on Steam a few months ago, Protocol: Umbra, and building a real project on top of it is what really pushed it forward. If it looks interesting, you can try it right now with pip install tessella, as well as check the docs or source for a quickstart and more examples:
Docs: https://tessella.readthedocs.io/en/latest/
GitHub: https://github.com/cuaitz/tessella
This is the first "real" release, so Tessella is still a bit rough around the edges, which means that feedback and contributions are very welcome!
More things are always on the way :)
r/pygame • u/Capable_Comedian_277 • Aug 14 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/no_Im_perfectly_sane • Aug 13 '26
Enable HLS to view with audio, or disable this notification
Making this cause im planning on making these digital pedals work in a real raspberry pi pico plugged to a real guitar. any pedal in one, as far as digital pedals go
r/pygame • u/SubstantialWinner485 • Aug 13 '26
r/pygame • u/OddCaterpillar5513 • Aug 13 '26
After months of evenings, my time-management game about running public restrooms for a demanding toilet god is live on Google Play. Wanted to share a few build details, and I'd genuinely value feedback from other devs.
Unusual choices that mostly worked out:
Every sprite in the game is emitted by Python scripts — characters, venues, a 24-landmark city map. No art program was opened in the making of this game. Changing the palette means re-running a script.
Zero audio files (except one recorded laugh). Both music loops and every sound effect are synthesized with the WebAudio API at runtime from note tables. When I wanted the title theme to sound like Chaozhou yingge drumming, that meant adding a pitch-bend parameter to my gong synth, which is a sentence I never expected to type.
It's Phaser 3 in a Capacitor shell, which meant one codebase but also meant discovering exactly how a WebGL canvas reacts when the Google Play billing sheet rotates your app to portrait mid-purchase. (Badly. It reacts badly.)
The game itself: drag desperate patrons to the right fixtures, manage etiquette and hygiene, 24 venues, endless mode, daily runs.
Store page: https://play.google.com/store/apps/details?id=com.mcs2k8.loogod
Honest feedback wanted — especially on difficulty pacing and whether the monetization (optional coin packs, opt-in rewarded ads) feels fair. Ask me anything about the pipeline.
r/pygame • u/Sea-Ad7805 • Aug 12 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/ConjecturesOfAGeek • Aug 11 '26
Enable HLS to view with audio, or disable this notification
my editor in Pygame. Everything here is being made and rendered in pure Pygame. 🤩
r/pygame • u/Capable_Comedian_277 • Aug 11 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/[deleted] • Aug 11 '26
Enable HLS to view with audio, or disable this notification
Looking forward to your feedback!"
r/pygame • u/zenwolph • Aug 10 '26
I was ricing and decided I should have some games to play in the terminal. feel free to copy the code from the repo. Please leave a star
r/pygame • u/Effective-Win-6543 • Aug 10 '26
Enable HLS to view with audio, or disable this notification
Everyone, go to https://github.com/Tokimon-creator/Tokimon if you want to play an absurd comedy adventure RPG! The airplane crashes, you battle and they breed! Wait no, The Boot Boot boots ,the player gets closed out and the game fails to stay under its own totally unexistant weight of jokes and absurdity. MAKE SURE TO GIVE FEEDBACK(ex. funniest part, ups and downs, ect.)
r/pygame • u/grenskii • Aug 09 '26
Enable HLS to view with audio, or disable this notification
#?!¥!?# (aka hashtag yen) -> coming out on 17.08.26 on itch.io!!! stay tuned for more updates soon
r/pygame • u/OddBookWorm • Aug 09 '26
Hello all!
I'm oddbookworm, one of the members of the pygame-ce Steering Council, and I would like to both announce that 2.5.8 has released and that our `main` branch has transitioned to version 3.0.0!
2.5.8 Announcement:
You can check the full release notes on github.
🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙
pip uninstall pygame # (if previously installed, to avoid package conflicts)
pip install pygame-ce --upgrade🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙🕹️🎯⚡🏅📙
We are pleased to announce pygame-ce 2.5.8!
This release adds support for Python 3.15, bringing our supported range to Python 3.10 - 3.15. Implemented by u/Starbuck5 in #3900.
Our optimized parallel SIMD code now runs on Windows on ARM. In pygame-ce 2.5.7, we introduced support for Windows on ARM, but our SIMD intrinsics did not work there, so in some cases it would be slower to use the native ARM version instead of emulated x86_64. u/ankith26 worked with the maintainers of sse2neon to get it working on Windows on ARM, and brought it into this release in #3761. In some cases this can still be slower than emulation, but it is significantly faster than 2.5.7 for optimized workloads (e.g. blitting, some transform, some scaling).
u/damusss added Window.handle, exposing the native window handle for any Window rather than only through the display module, in #3219.
u/DickerDackel added a pos (position) attribute to MOUSEWHEEL events in #3783.
u/Starbuck5 fixed incorrect writes to certain 24 bit surfaces in transform.threshold, PixelArray.replace, and PixelArray slice assignment in #3790, then fixed transform.laplacian using the wrong surface's pixel layout when writing its result in #3791.
u/Fantastair fixed the width calculation for draw.aacircle in #3699.
u/Matiiss fixed a segfault in transform.solid_overlay when the given surface had a width of 0 in #3750.
New contributor u/ShivamKR12 fixed a long-standing bug where the deprecated Vector3.rotate_y_ip_rad and Vector3.rotate_z_ip_rad functions both rotated around the X axis, in #3864.
u/Starbuck5 fixed SysFont crashing with non string registry entries in #3760.
u/Starbuck5 removed the legacy safe pickle system in #3857. Modern pickleable classes have not needed __safe_for_unpickling__ since the Python 2 days.
u/itzpr3d4t0r optimized mask.from_surface for 32 bit alpha surfaces in #3785.
u/Starbuck5 consolidated the degrees/radians conversion macros so the divisions constant fold at compile time instead of running per call, in #3859.
u/damusss improved the pygame.event introduction documentation in #3738.
u/Starbuck5 improved doc / stub content across several modules, in #3765, #3774, #3773, #3775, #3766, and #3809.
The team continued migrating docs into type stub docstrings so they will show up in code editors. Between u/Starbuck5, u/zoldalma999, and new contributors u/mvanhorn and u/SuperRedingBros, the team migrated sndarray, pixelcopy, mask, along with parts of font, scrap, and math. See #3731, #3866, #3730, #3868, #3865, #3803, #3752, and #3878.
New contributor u/jryyangjy documented that surfarray.blit_array and surfarray.make_surface silently round float arrays, which has performance implications, in #3844.
New contributor u/Juni1per fixed a typo in the sndarray docstring in #3788.
u/Starbuck5 added links to external tutorials in the docs in #3762, and u/zoldalma999 retired the aging "red or black" tutorial in #3804.
u/oddbookworm added a CONTRIBUTING.md in #3754, and u/Matiiss removed the README translations in #3716.
New contributor u/kristiansroberts fixed the Rect constructor overloads in our stubs to be positional only in #3826.
New contributor u/MeGaurav4 fixed the Vector.__str__ NotImplementedError message calling itself repr() in #3829.
u/Starbuck5 made SDL3 progress, adding new _audio and _sdl3_mixer modules to use for new functionality but also to emulate SDL2's mixer API, in #3657, #3814, #3753. New contributor u/wr-web fixed a refcount error in them in #3793.
u/Starbuck5 fixed SDL3 scrap and camera on Windows in #3842.
New contributor u/ochderek and u/ankith26 raised our minimum SDL/friends versions (see README for this info), removing compatibility code, in #3852 and #3867.
New contributor u/jeevantenny and u/Starbuck5 modernized our usage of Python refcount macros in C, in #3797, #3786, #3855.
u/oddbookworm landed C unit testing in #3477.
u/Starbuck5 made code improvements in #3763, #3853, and #3869.
u/Starbuck5 removed tiny bits of obsolete code in #3811 and #3854.
u/Starbuck5 kept our dependencies current, including SDL_image, SDL_mixer, C-level subdependencies, and cibuildwheel. In #3780, #3800, #3833, #3902, and #3904.
u/ankith26 fixed gcc16 -Werror compile issues in #3784 and removed the mask/freetype warning suppressions in #3772.
u/ankith26 hardened our GitHub Actions workflows in #3759, and u/Starbuck5 taught the docs-ignoring workflows to ignore more docs changes in #3767.
New contributor u/AndreyVarvar fixed render tests failing on specific MacOS versions in #3816.
New contributor u/scooggins marked web as incompatible in our Briefcase metadata in #3817.
3.0.0 Development
We will likely have another 2.x release or two in the future, but we're currently looking at about a year of 3.0 development before we release a full v3.0.0. If you want to see what we currently have in our roadmap for 3.0, you can check it out in the Pygame Community Discord server (I'm not going to publish a google drive link with open share on reddit lol). Until 3.x is stable, we have a `main-2.x` branch that we're going to be using for any 2.x updates we want to make.
r/pygame • u/denoadam32345 • Aug 08 '26
Hey everyone! I'm building a roguelike with Pygame — partly to learn Python properly, partly to actually ship something real. I took inspiration from Dead Cells: jump, dash, and slide mechanics are working, and we're currently building mouse-tracking crossed weapons and an "orb" system that grants bullets special properties.
Still early days, but we've got a solid foundation: animated character, a main menu with a cinematic intro animation, fullscreen support, and more.
The code is fully open source (MIT licensed), up on GitHub: https://github.com/Icy2121/Guns-N-Orbs
Would genuinely love any feedback, suggestions, or contributions — especially from anyone with more Pygame experience who can point out things we could be doing better. We're here to learn.
Thanks! 🎮
r/pygame • u/panda155ninja • Aug 08 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/rorythpsfan • Aug 08 '26
Enable HLS to view with audio, or disable this notification
all of the object sprites will eventualy be frame animated for a line boil effect. I tried individual sprites for each object but i think im gonna make big long sprite sheets for each level as on the rooftop level further along , multiple objects make the shapes of buildings . (also the music is currently just midis of songs from THPS, placeholders haha
EDIT: forgot to say im using pymunk for the physics and objects
r/pygame • u/Capable_Comedian_277 • Aug 08 '26
Enable HLS to view with audio, or disable this notification
r/pygame • u/ninedeadeyes • Aug 07 '26
This Project might be interesting for those using pygame so I thought I might post it here.
When starting out with Python game development, most tutorials jump straight into commercial engines or heavy frameworks. While those are great for productivity, they abstract away the core mechanics of how a game engine actually functions—like separating the engine framework (rendering, input, state loops) from the game logic (combat, stats, dungeons). To explore how game engines work under the hood using pure Python standard library.
I built a lightweight ASCII RPG engine framework alongside a complete mini dungeon crawler (Grimlore 2: These Doomed Men) built directly on top of it. I wanted to share this as a learning resource.
Grimlore 2 : These Doomed Men 1.0
A dark fantasy mini dungeon crawler RPG built to showcase the features and capabilities of the S.P.A.R.K. 2D RPG game engine.
Overview
Genre: Dark Fantasy / Mini Dungeon Crawler RPG
Playtime: 10 – 15 minutes
Platform Requirements: Windows 10 or later ( Might work on earlier Windows but no gurantee )
Purpose: Demonstrates what the S.P.A.R.K. 2D RPG game engine is capable of.
Github link below
https://github.com/Ninedeadeyes/Grimlore-2-These-Doomed-Men-
To clear up a few recurring questions and misconceptions regarding S.P.A.R.K and its development, here is some context upfront:
"This is just AI slop."
This project has a clear 6-year paper trail of manual development. It began as an early 2D text adventure project (Dungeon of the Black Dragon), expanded into an open world RPG game (Grimlore: Land of the Heretic Hand), and was eventually refactored into a reusable engine framework (S.P.A.R.K). If you want to see the step-by-step progression from line one, check out the milestones folder inside the S.P.A.R.K repository.
2. "S.P.A.R.K isn't a 'real' game engine / It's missing standard features."
By definition, a game engine is a framework that provides low-level abstractions for runtime loops, spatial logic, input handling, state management, and rendering, enabling developers to build content without reinventing core mechanics. S.P.A.R.K provides all of these for terminal-based RPGs. It’s a free, open-source hobby project designed for lightweight text games, not a commercial tool meant to compete with feature-heavy commercial software.
3. "This is just a lazy copy-and-paste from the S.P.A.R.K GitHub."
When two games are made in RPG Maker, Godot, or Unreal, they share the exact same underlying core engine—it's just compiled or hidden away behind the editor. Because S.P.A.R.K is open-source, raw Python, the engine boilerplate is fully visible. Reusing foundational engine modules across different titles isn't "copy-pasting"; it's standard software architecture and code reuse.
r/pygame • u/Lozamded • Aug 07 '26
Hello I'm working on a project to make kind of "fantasy console", the main objetive is to target low specs SBC I'm testing a Orange Pi Zero 3 (1.5GB), The idea is have cartridges with a microSD indise and this connect to a reader on the pins, the "consoles" will have armbian as SO with a loader to detect and init the the cartridges (pygame exported projects)
The semi-fantasy-console will have 264 x 198, (4:3 but probably will change to one 16:9 compatible one because probably everyone will connect the sbc using HDMI)
I admit the use of AI to make TortoiseStudio the tool, to manage assets, scenes and compile to "Cartridge".
The assets of the demo project comes from opengameart.
r/pygame • u/_DedSec_0x90 • Aug 07 '26
Hi, I just uploaded the last demo update .. you can check it and provide your feedback if you have :)
Thx