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 • • 6h 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 • • 5h 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 • • 22h ago

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

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

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

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

EvergreenMeadows: added stamina bar and sprinting 💨💨

3 Upvotes

r/pygame • • 3d ago

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

5 Upvotes

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

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

60 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 • • 4d ago

PyGameOs

0 Upvotes

For embedded devices pygame projects.

https://github.com/SpudGunMan/pyGameOS


r/pygame • • 5d 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 • • 5d ago

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

Post image
2 Upvotes

r/pygame • • 6d ago

CAyito - Made with pygame

45 Upvotes

Trying to get this to look nice!


r/pygame • • 6d 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 • • 6d ago

Need help with player movement

Thumbnail
reddit.com
0 Upvotes

r/pygame • • 6d 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 • • 8d ago

Game I've been working on for a while

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

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.


r/pygame • • 8d ago

OVER-RIDE // ALIEN CIPHER SIEGE

1 Upvotes

Hey everyone,

I just launched OVER-RIDE, a standalone Windows-exclusive alien shooter built entirely in Python (using Pygame and compiled into an executable).

Instead of a generic top-down shooter, OVER-RIDE combines fast arcade reflexes with real-time tactical mechanics:

  • Cipher Ammunition: Switch bullet types on the fly using cipher keys to break through specific alien armor classes and shield frequencies.

  • Tactical Breach Puzzles: Solve rapid-fire encryption puzzles mid-combat to unlock room doors, bypass lockdown barriers, and shut down environmental traps.

  • Aggressive Wave AI: Battle relentless enemy types that exploit your positioning, flank you in tight corridors, and force quick tactical adjustments.

  • Pure Windows Build: Packaged as a clean, standalone .exe optimized for zero-delay inputs and responsive keyboard controls.

If you like fast-paced arcade shooters or mechanic-heavy indie projects built in Python, check it out on Itch.io.

Any feedback or bug reports are appreciated!

Link: https://dhruv-karanji.itch.io/over-ride

Running Python-compiled executables on Windows sometimes triggers a Windows Defender SmartScreen warning because the .exe isn't signed with a paid certificate.

If Windows pops up with "Windows protected your PC" when you launch the game:

  1. Click on "More info".

  2. Click the "Run anyway" button.

The executable is 100% safe, built locally, and contains no telemetry or network requests.

Privacy notice: https://sites.google.com/view/dhruv-karanji-privacy/home


r/pygame • • 9d ago

I made a video with pygame and manim about 2D game ligthing using normal maps. This is the technique I use in my current pygame + ModernGL project

Thumbnail
youtube.com
15 Upvotes

r/pygame • • 9d ago

My maze game is now free on Steam

19 Upvotes

Over the last few months, I have been developing a maze game with Pygame to release on Steam.

If you want to check it out, here is the link:
https://store.steampowered.com/app/5349900/Mystic_Fog_Maze/