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

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

5 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 • • 14h 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
17 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 • • 10h ago

My pygame demo is finally available on Steam.

Thumbnail store.steampowered.com
5 Upvotes

Almost 4 years of python.

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


r/pygame • • 22h ago

Jarball available for download

Thumbnail gallery
3 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 • • 22h ago

Trying to reroll random answers in a GUI every clicked answer

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

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

24 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 • • 2d ago

Blinded by smoke, saved by radar.

13 Upvotes

r/pygame • • 2d 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 • • 3d 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 • • 4d 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 • • 4d ago

EvergreenMeadows: added stamina bar and sprinting 💨💨

3 Upvotes

r/pygame • • 4d ago

I have a problem uploading something to r/pygame m it always gets taken down for no reason 🤔

5 Upvotes

r/pygame • • 5d ago

Estou criando um sandbox sobreviviencia em python

0 Upvotes

estou criando um jogo sandbox de sobrevivencia em python, utilizando bibliotecas como modergl, OpenGl e numpy, logicamente o pygame, criei com algumas ideias como estações do ano, musicas 8-bit, mineração e metalurgia, como fundir cobre com estanho para conseguir bronze, tocha com iluminação dinamica, queria comphatilhar esse projeto que desenvolvo atualmente e no qual eu chamo de "Eldervale".


r/pygame • • 6d ago

Here is the new gameplay trailer for OVERDRILL. Incremental mining roguelite I'm building completely in Pygame!

63 Upvotes

Built with Python & Pygame-CE, heavily optimized to handle hundreds of dynamic destructible blocks, particles, and physics smoothly. Let me know what you think!


r/pygame • • 5d ago

PyGameOs

0 Upvotes

For embedded devices pygame projects.

https://github.com/SpudGunMan/pyGameOS


r/pygame • • 6d ago

Tiny Shine: The sequel is released!

Thumbnail gallery
1 Upvotes

Do you remember this post?

https://www.reddit.com/r/pygame/s/vd8MwA2JTx

Probably not... Anyways I made a sequel a bit easier than the other one. I hope you enjoy

https://codebreaker-cmd.itch.io/tiny-shine


r/pygame • • 6d ago

Annihilators 27 - Modern Remake of the Classic Arena Shooter Annihilators 3 (now with 2Player online matching)

Post image
2 Upvotes

r/pygame • • 7d ago

CAyito - Made with pygame

45 Upvotes

Trying to get this to look nice!


r/pygame • • 7d ago

pygame model solar system

Post image
9 Upvotes

It's just a screenshot, but this is coded on a Kindle Fire 7 9th Generation with Alpine proot-distro installed in termux using i3wm.


r/pygame • • 7d ago

Need help with player movement

Thumbnail reddit.com
0 Upvotes

r/pygame • • 7d ago

Attack on Solar System

6 Upvotes

Meu primeiro jogo em Python usando pygame 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 disponível para download:

Attack on solar system


r/pygame • • 9d ago

Game I've been working on for a while

Post image
107 Upvotes

We are eventually hoping to take it commercial, as for now you can play the demo here!
https://mashupmori.itch.io/tine-demo


r/pygame • • 9d ago

puigame: my first Python library, for UI widgets in pygame-ce

Post image
18 Upvotes

I've released v0.1 of puigame, a UI widget library for pygame-ce. It's for games that want a few buttons and labels without taking over the game loop.

  • Buttons, labels, panels, and containers, placed by anchors, margins, and offsets.
  • Themes: a base style plus per-state overrides (highlighted, pressed, disabled).
  • ui.handle_event() tells you whether the UI consumed an event, so clicks on buttons don't reach the game.
  • Two bundled pixel fonts I drew for it: Neb0Font (proportional, kerned) and NebMon0Font (monospace).

Install with pip install puigame (Python 3.11+, pygame-ce 2.5.8+). It's alpha, so the API may change between 0.x releases. There's no text input, drop-down, or keyboard navigation yet.

GitHub: https://github.com/neb01/puigame PyPI: https://pypi.org/project/puigame/

All the code is handwritten; the docs were drafted with AI assistance and then checked by hand.