r/pygame • • Mar 01 '20

Monthly /r/PyGame Showcase - Show us your current project(s)!

84 Upvotes

Please use this thread to showcase your current project(s) using the PyGame library.


r/pygame • • 8h ago Bravo

My demo game is done!!!

58 Upvotes

Today I completely finished with the game exactly 6 days ago I made a post here with this same game, in these 6 days I improved it and brought it to perfection and I really like how the demo looks now.If you like it, you can play it on my itch: https://ssoh-v1.itch.io/the-dungeon-of-god.

Thank you all for helping promote my project. I am very grateful to you and will try to release the release version of the game as soon as possible.


r/pygame • • 3h ago

ModernGL implementation in my game. The lighting really improves the atmosphere.

11 Upvotes

r/pygame • • 7h ago Bravo

1 Year of Development

Thumbnail gallery
13 Upvotes

I've just dropped a massive upgrade on Bit Rot, the game i've been building for over one year now with PyGame

https://gustavokuklinski.itch.io/bit-rot/devlog/1794327/build-0063-1-year-of-developement-this-is-how-youll-rot


r/pygame • • 12h ago

i made a fantasy console in pygame that lets you create real NES games using C99

Thumbnail gallery
6 Upvotes

i was working on this project for a while and i think its good enough to share it with community

its a fantasy console/game engine for creating real NES games using C99 and cc65 compiler

the editor is written in python and pygame but the underlying framework NESkit(also made by me) is in C

you can check it here https://cutaway-software.itch.io/neskit-studio


r/pygame • • 4h ago

This was my 2nd game with python. also it was my classes project too if yall would rate it i would appriciate it

Thumbnail gamejolt.com
1 Upvotes

r/pygame • • 1d ago

Need feedback on my Pygame Roguelike architecture. How do you manage game states and the main loop?

Post image
4 Upvotes

Hi everyone! 👋

I've been learning Python and got tired of seeing the same old tutorials, so I decided to build a Roguelike inspired by HoloCure and Vampire Survivors.

This is just a prototype (no name yet), but I'm really proud of the technical progress. I want to improve my code architecture, so I'm looking for honest feedback from more experienced devs.

What's currently implemented:

  • Modular Wave System (oleadas.py): Time-based progression that scales enemy health, speed, and spawn rate.
  • Upgrade Cards (mejoras.py): Pausing between rounds to choose 3 random upgrades (fire rate, damage, speed, etc.).
  • Sprite Optimization: Loading sprite sheets once and slicing them via .subsurface() to save RAM on low-end PCs. Using a fair 24x24 hitbox while rendering larger sprites.
  • Basic farming mechanics (carrots drop,WIP for healing).

What I need help with:

  1. How would you organize the main loop? Right now main.py feels a bit heavy and I want to avoid a giant if/elif mess.
  2. Any tips on state management (Menu, Playing, Game Over)?
  3. General feedback on the architecture is highly appreciated.

GitHub Link: https://github.com/N-near/Juego-roguelike-pygame (The README has the full guide on how to run it in a venv).

Thanks for reading! Have a nice day or night >:3


r/pygame • • 23h ago

Living Planet: a Pygame strategy simulation where local LLMs run 2–6 nations

0 Upvotes

Sharing Living Planet, a strategy simulation created by TPECKA180. It runs in Python/Pygame and lets local language models make decisions for 2–6 nations. The game engine validates proposed orders against ownership, resources, routes, technologies and treaties before they change the world. The simulation includes economic development, research, diplomacy, construction and conflict.

This is an observe-the-simulation experience rather than a conventional player-controlled strategy game. The current release requires Python 3.12 and a compatible local model server such as LM Studio; model weights are not bundled.

Free project and setup: https://github.com/TPECKA180/living-planet

Screenshots: https://github.com/TPECKA180/living-planet/blob/main/docs/SCREENSHOTS.md

Original creator: TPECKA180. License: Living Planet Free Community License v1.0 (custom, non-OSI; commercial-use restrictions apply).


r/pygame • • 3d ago

Just made a new, modern FOSS Steamworks wrapper for Python!

7 Upvotes

I just open-sourced my custom Steamworks wrapper for Python under the MIT license! It's called PySteamBridge, and unlike some popular wrappers, this one does not need any additional DLLs installed! Just copy the repo folder into your game directory, and put in Valve's DLLs there! The functions used are a 1 to 1 replica of those in SteamworksPy by philippj, so you can use this as a drop in replacement if you were using that before. Full setup instructions and details can be found on the Github repo!

Download PySteamBridge on GitHub- https://github.com/AniGamer-YT/PySteamBridge

Hope you like it :D


r/pygame • • 4d ago

dvd screensaver

0 Upvotes

I made a DVD screensaver simulator using Python and Pygame!

It’s my own little project, and I decided to release it publicly.

It’s still a work in progress, so there might be bugs.

You can try it here:
https://angelsintheskies.itch.io/dvd-screensaver

Feedback is appreciated! :D


r/pygame • • 5d ago

Love the CRT Effect here!

58 Upvotes

I really love the CRT and curved screen effect I used for my pygame game Ball Drop Madness. I really think it ties the game together visually, really giving it some interesting charm as the overall aesthetics are very basic.


r/pygame • • 5d ago

X

0 Upvotes

r/pygame • • 5d ago

Making a liminal Space game ....

Post image
6 Upvotes

r/pygame • • 6d ago

Flippin' Sketchy - overhauled the GUI and started animating cutscenes, 68 frames of pain hahaha

14 Upvotes

So I've made various changes to the demo:

- Overhauled the GUI to more match the colour palette and aesthetic of the game itself
- Added and Hand Animated a complete Tutorial (68 Frames of pain haha) and implemented it when Story is first launched from the main menu

- Fixed a bug where the Skater could clip through the park objects, turns out pymunk.Segments aren't solid, but pymunk.Polygons are!
- Fixed a bug where the player would get trapped in the desk on respawn or fall through and die

- Implemented a way for the player the enter their name  so that when Score unlocks in the Main Menu it uses it when submitting to the leaderboard
- Have two levels available in "Score" that players can compete for the highest scores in!

In the future i plan to:

- add the spark vfx that happens when the board grinds to the Ad in the tutorial book

- Put the board Designs that can be bought on the "Sketchy Boards" Ad, once I've drawn more than 2 haha

- make a comic book animation, similar to the tutorial (same desk etc) to replace the blue screens with text

- implement controller compatibility, I know pygame is pretty good for this but I've never actually tried it out so that'll be fun! if/when I do implement it I'll update the animation to have little xbox style controls next to the keyboard controls

-work through animations for the rooftop level to get that done :D

apologies for such a long post but I've been tinkering away and am kinda proud of how its looking at the moment, the demo itself is on Itch.io ! If anyone has a spare 5 minutes to check it out and give me some feedback I'd greatly appreciate it!


r/pygame • • 6d ago

I built a 2D dark fantasy action-roguelike platformer in pure Python & Pygame-CE (200+ FPS, procedural pixel art & audio) — Free Demo on itch.io!

Thumbnail gallery
38 Upvotes

Hi r/pygame! I've been solo-developing my dark fantasy action-roguelike platformer "The Dungeon of God" using Python 3 and `pygame-ce`, and I just released the free playable demo for Windows and Linux.

Technical & Gameplay Highlights:

Pure Procedural Assets: All pixel-art sprites, tiles, animations, and even the sound effects/music are generated and baked procedurally in code without external asset packs.

320x180 Virtual Canvas & Dynamic Lighting: Uses baked room surfaces, `BLEND_RGB_MULT` / `BLEND_RGB_ADD` lightmaps, C-level `collidelist` physics, and rotation/HUD caching to maintain a rock-solid 200+ FPS even in fullscreen.

3 Classes & Grappling Hook Combat:** Play as Warrior, Ranger, or Mage, use the grappling hook (RMB) for traversal or yanking enemies into melee range, and equip up to 8 normal + 2 cursed Legendary relics.

33 Halls & 3-Phase Boss: Fight through 4 biomes (Catacombs, Oasis, Crystal Grottos, Forgotten Temple) to face The Stone Knight.

Free Demo (Windows & Linux) on itch.io:

https://ssoh-v1.itch.io/the-dungeon-of-god

I would love to hear your thoughts on the performance and combat feel!


r/pygame • • 6d ago

My pygame demo is finally available on Steam.

Thumbnail store.steampowered.com
8 Upvotes

Almost 4 years of python.

Enjoy! Hope it will change your mind on python/pygame.


r/pygame • • 7d ago

Jarball available for download

Thumbnail gallery
4 Upvotes

Hello everyone . Finally got time to work on the game . Get it on itch.io

I did some major reworks on the UI and theme . 22 out of 120 target levels designed .

In the future levels might change or get moved around as I'm still working with user feedback to make it more balanced .

I used sounds from freesound.org and some art from opengameart.org , the rest I drew on Gimp ( painstakingly, I'm an average artist but drawing with the mouse is such a pain ).

More art and in game content are on the way.

Check it out and let me know what you think . Thank you for reading .

Have a good one : ) 💙


r/pygame • • 7d ago

Trying to reroll random answers in a GUI every clicked answer

Thumbnail gallery
2 Upvotes

Howdy,

So I'm trying to make my random answers reroll (in 'randint' style) but they always stay the same while switching states.

- Here's my code : https://paste.pythondiscord.com/5MBA

**TEST 1 :**

In `load_answers.py`, I tried replacing `correct1 = randint(questions1["x"], questions1["y"])` with :

```

def correct1() :

return randint(questions1["x"], questions1["y"])

```

And in `states.py`, replaced `if answers1["guess1"] == correct1 :` with :

`if answers1["guess1"] == correct1()`

**RESULT 1 :** This just gave me a memory location as an answer

**TEST 2 :**

In `load_answers.py`, by replacing `correct1 = randint(questions1["x"], questions1["y"])` and :

```

while len(answers_set1) < 3:

answers_set1.add(randint(questions1["x"], questions1["y"]))

answers_list = sorted(answers_set1)

```

with :

```

def make_guess_question():

answers_set1 = {correct1()}

while len(answers_set1) < 3:

answers_set1.add(randint(questions1["x"], questions1["y"]))

return sorted(answers_set1)

```

and in `states.py` :

```

if answers1["guess1"] == correct1 :

print('CORRECT :', correct1)

if answers1["guess2"] == correct1 :

print('CORRECT :', correct1)

if answers1["guess2"] == correct1 :

print('CORRECT :', correct1)

```

with :

```

if answers1["guess1"] == correct1() :

print('CORRECT :', correct1())

if answers1["guess2"] == correct1() :

print('CORRECT :', correct1())

if answers1["guess2"] == correct1() :

print('CORRECT :', correct1())

```

**RESULT 2 :** It gives me numbers but they change every single frame of 60 fps and the print statement shows me `CORRECT : 5` but I clicked 3 for example.

More so, the answers in the rectangles won't change even if the answers technically do (unreachable choice)


r/pygame • • 7d ago

I extended my GameBoy Emulator I wrote with pygame to GameBoy Color

36 Upvotes

Source: https://github.com/atifcodesalot/hazelnut-gb-emu Welp, what the title says. It took about a week to extend it to GBC. I actually used 15 bit surfaces with gameboy color special masks. The original GameBoy actually has one palette so an 8 bit surface was sufficient. I am trying to implement sound with the pygame's mixer module but it is kinda buggy 😅. Anyways, enjoy! Oh, and don't forget to clone the repo yourself and play some Donkey Kong Country or Pokemon Crystal :D


r/pygame • • 9d ago

Blinded by smoke, saved by radar.

15 Upvotes

r/pygame • • 9d ago

Scoppia 3 [GAME RELEASE]

Thumbnail gallery
3 Upvotes

hi, i wanna share my new game that i release in these days.
Is "Scoppia 3" a Card Game born in a very very very bored moment beetween me and my bestfriend 7 years ago and in these day i recreated in a "Videogame version" so if you wanna try it:

https://corryws.itch.io/scoppia3


r/pygame • • 9d ago

Skrash — Scratch sous stéroïdes ! 😸

Post image
4 Upvotes

Et si vous pouviez prendre un jeu Scratch existant et étendre ses possibilités grâce à Python ?

C'est le concept de Skrash.

Skrash est un environnement d'exécution natif pour Scratch 3.0, conçu pour exécuter fidèlement les projets *".sb3"* existants, tout en introduisant Python comme alternative pour programmer et interagir avec eux.

Imaginez implémenter des algorithmes avancés, expérimenter des simulations physiques, créer des systèmes de recherche de chemin, effectuer des calculs mathématiques complexes ou développer des systèmes de génération procédurale dans un jeu initialement créé avec des blocs Scratch.

Au lieu de remplacer Scratch par un langage textuel, Skrash intègre Python à l'écosystème Scratch.

En interne, il utilise un environnement d'exécution C natif, avec Python disponible comme extension pour contrôler les projets, accéder aux sprites et aux variables, déboguer et automatiser les tâches. Skrash est un logiciel libre sous licence MIT. Vos contributions, idées, rapports de bugs et retours techniques sont les bienvenus !

Le projet est encore en développement et je suis intéressé par les développeurs qui aiment explorer des approches alternatives du développement de jeux.

GitHub : https://github.com/raidos23/skrash


r/pygame • • 10d ago

I open-sourced my Pygame CRT effect: curved glass, scanlines, bloom, bezel & mouse mapping (no shaders required!)

Thumbnail gallery
16 Upvotes

Hey everyone! I extracted the CRT post-processing system from my game OVERDRILL into a standalone, lightweight open-source repo for Pygame and pygame-ce.

Features:

- Curved glass & barrel distortion

- Scanlines, bloom & vignette

- Vintage bezel rendering

- Automatic mouse coordinate mapping (UI clicks still work accurately!)

- Pure Pygame surfaces (no OpenGL / GLSL shaders required)

GitHub: https://github.com/mmtdgn/pygame-crt

Hope this helps anyone looking for retro aesthetics in their projects. Feedback and PRs are very welcome!


r/pygame • • 10d ago

EvergreenMeadows: added stamina bar and sprinting 💨💨

4 Upvotes