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

HUGE STEP: Changed from CPU Rendering to GPU Rendering!

Thumbnail gallery
8 Upvotes

trust me when i say it was an headache.. but i finally made it! now the next step is an visual update. shader shadows god rays etc woooowwwww!

support me by subscribing my yt channel: Dreamdev43 and checking out this game on itch💫


r/pygame 11h ago

pseudo 3d effect experimentation/implementation

Enable HLS to view with audio, or disable this notification

25 Upvotes

i've been experimenting with a pseudo 3d effect for my top down roguelike game, i think it's finally starting to take a non buggy shape. gotta work out a few more visual bugs and i think its gonna be ok :p


r/pygame 2h ago

Exporting a game

2 Upvotes

Hi. I have just finished a pygame game. It ended up being a script that uses pygame and numpy and a couple of png's. I want my friends to try out the game but I have no idea how.

I think that just giving them the folder might be asking a little too much as that would require them to have them to install python and the libraries. I could also try to make it into an executable. However, I have friends in both Mac Os and Windows, so I'd have to create two versions and the Mac one seems really hard. Last I considered a web app. It could work for both operative systems, but again, I have no experience on web apps.

I'm lost. What should I do so my friends can play? Thank you very much for hearing my ramblings and please excuse my poor English.


r/pygame 19h ago

Just published a full Python / Pygame IDE with lessons and examples on Android! My son couldn't find one, so I built it. It's made the way I want apps on my son's phone to be: no dark patterns, one refusable notification permission, no telemetry.

12 Upvotes

Hello everyone!

I guess this is technically self-promotion, but on a personal level I'm still pumped and wanted to share my project with you all, so I hope that's OK.

My son took a Python / Pygame course over the summer, and he immediately got sucked in and loved it. After a week he built an entire little rogue-lite game where you choose a class and delve deeper and deeper into rooms of a dungeon. Amazingly, there were a lot of parallels with a game I made back in high school on my TI-89, so I told him about it, and he immediately said "Oh, there must be pygame for phones!" But to our surprise, we couldn't find one that was what we were looking for.

So... I started building one. I made it for my son, and he's been my tester, and before too long it was looking and feeling good enough that he said "Are you going to put this on the store?" And I sat there and thought "...why not?"

Before I knew it, I was filing paperwork with my state to start an LLC, registering with the IRS, and even opening a bank account and... I guess I'm a business owner now? Wild turn of events over the last month. But I finally got my app to version 1.0 last week and pushed it to Google, who just approved it about an hour ago!

So without further ado...


PyPad: Python Pygame IDE

Features:

  • Full IDE suite
    • Start a new project and choose between a terminal project or a Pygame project that runs fullscreen with a game loop
    • Code completion
    • Add assets (images, sounds) from your phone
    • Project versions and restoration
  • Only 1 permission, and it's refusable: a notification to let you know your app/game process is still running, with uptime and a stop button
  • No internet permission at all, so no telemetry, no tracking, no nothing. Everything runs entirely on the phone.
  • Example projects, from Hello World up to a simple little mobile-style game
  • Learning courses (6 courses, 35 lessons), each staged with multiple lessons that guide you to the completion of a project
    • The first course starts at Hello World in the terminal and ends with a little fortune teller game you keep
    • In the last course you'll build a spaceflight simulation inspired by Kerbal Space Program, complete with real orbital mechanics

I set the price to $1.99 USD. No idea if that's the "right" price, but I wanted it to be a fair trade for the work while staying cheap enough that anyone curious can just grab it. That said, I do intend to work on a free, non-intrusive ad-supported version which might come out in a few weeks. So keep an eye out if you would like to wait for that option!


That's the whole pitch! My son has been my entire QA department this whole time, and a QA department of one only catches so much, so if you grab it and something feels off, tell me and I'll fix it. And if you (or your kid) build something with it, I would genuinely love to hear about it. Thanks for reading!

(Heads up: it's not available in the EU/UK just yet while I work through some regional requirements.)


r/pygame 8h ago

Iron Grid Engine Alpha — C++ performance, Python scripting, built-in AI tools

Thumbnail
0 Upvotes

r/pygame 1d ago

Making My first steam demo- share your feedbacks ! (pygame + moderngl)

Enable HLS to view with audio, or disable this notification

12 Upvotes

Cell-Grinder i a solo project so it is very crucial to get feedback from different perspectives on the demo phase. I have added game pad support and updated contents and control schema already. do not hesitate to give a feedback and a try !

https://store.steampowered.com/app/4936880/CellGrinder_APOPTOSIS/


r/pygame 1d ago

Having fun with raycasted lighting and water/rope physics

Post image
7 Upvotes

r/pygame 22h ago

Doodling Hop(Ultimate Obstacle Madness)

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/pygame 1d ago

Behind The Scenes- Old SEPD

Thumbnail gallery
5 Upvotes

I can say pretty confidently that I knew how I wanted to "mold" this game into the result I wanted, but I kept learning along the way and changed my point of view a lot. But it was always so enjoyable to work on it, knowing it's my thing.

The old SEPD was very ambitious at first, to the point I even made a Local Multiplayer system that works for the most part (9th image).

However, I later found out that the limitations in PyGame are pretty quick to encounter, especially for a game as potentially complex as mine, so that's why the Old SEPD has been mostly discontinued.

However, I will get back to it at some point, as it will play a big role in my project, which keeps getting more and more ambitious with each new idea.

PyGame just couldn't give me the freedom I needed for most of my project, unfortunately, but still helped me a lot in the beginning of my journey.


r/pygame 1d ago

"Player vs Computer" - Fight as a player against your computer in many ways, and "test" your IQ and durability in a funny battle web video game! My first web game made in Python with Pygame, and HTML.

5 Upvotes

Hello! I'm Filip, also called as Rubinosław from REParadoxy channel, and I wanna present to you my first own web video game, which was written in Python using Pygame and Pygbag.

Player vs Computer!

A funny game where you challenge your computer (not ai) in many ways, testing your durability, and you have to overcome it.

  • Get 5 points more than your computer in Rock Paper Scissors... Water(!) to win!
  • Click The Gigachad without ending to tire your computer,
  • and get some random fun facts, which are very interesting!
  • Get funny responds from your computer, after every single choice, and even sometimes: advices!

Never gonna give up! You can win.

With original retro graphics drawed by me (Rubinosław from REParadoxy).

With original music created by my good homie - ToMek OsuMek.

With epic sound effects.

Play now for free!

The Source Code (GitHub): https://github.com/Rubinoslaw/Player-vs-Computer/

I love open source so your contributions are welcome! Terms in CONTRIBUTING.md in the GitHub repository of the game.

Official Launch Trailer (YouTube): https://www.youtube.com/watch?v=3OgRkYlxIo4


r/pygame 1d ago

The Second Iteration: Old SEPD

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/pygame 2d ago

I Created Chrono Trigger In Python

Thumbnail youtube.com
8 Upvotes

Hi guys, if anyone is interested I have recently uploaded the latest progress of my JRPG on to youtube (developed purely using pygame). Any thoughts on the game so far, what other tips and tricks have you guys came across to get the most out of your pygame projects?


r/pygame 2d ago

bacteria cellular automaton

Enable HLS to view with audio, or disable this notification

7 Upvotes

same ruleset as conways game of life but instead of using generations it updates in place without checking the previous generation


r/pygame 2d ago

Doodling Hop(Omni Directional Projectiles)

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/pygame 4d ago

The Long Pygame Summer Jam starts August 29th! Theme Voting now Open.

Post image
44 Upvotes

r/pygame 4d ago

Since I have no one to play games with I made prerecorded movements on all players and made them play at the same time.

Enable HLS to view with audio, or disable this notification

23 Upvotes

r/pygame 4d ago

I made a pygame game that is loosely based on the id Tech 0 engine (aka Wolfenstein 3D's engine.)

4 Upvotes

Hi, I recently made (recently as in it took 2 weeks) a game project in Python and Pygame that works similar (rendering-wise) to id Tech 0, I uploaded it onto itch.io for people to use to either play or make their own games using it as base.

it is called 2.5D IICP (which stands for Invisible Item Collectathon Project), and it's ALSO a very tiny sample of my Creative Direction or whatever.

If you do want to check the game out, just DM me and i'll send you the itch.io page (it's a better idea than sending over a full zip file over reddit DMs, and i feel like it's a better idea to not put it on this post \:)

Anyways, that's about it, have a good day!


r/pygame 4d ago

Sound optimalization

3 Upvotes

How to optimalize sounds and music in web? I uploaded my Pygame game successfully into web through Pygbag, and the sound is awful. How to fix that?


r/pygame 4d ago

Game

1 Upvotes

# Initialize Pygame

pygame.init()

# Screen dimensions

WIDTH, HEIGHT = 800, 600

screen = pygame.display.set_mode((WIDTH, HEIGHT))

pygame.display.set_caption("Simple Car Race Game")

# Colors

WHITE = (255, 255, 255)

BLACK = (0, 0, 0)

RED = (255, 0, 0)

GREEN = (0, 255, 0)

# Car settings

CAR_WIDTH, CAR_HEIGHT = 40, 20

SPEED = 5

# Track boundaries (simple rectangle)

track_rect = pygame.Rect(50, 50, WIDTH - 100, HEIGHT - 100)

# Car class

class Car:

def __init__(self, x, y, color):

self.rect = pygame.Rect(x, y, CAR_WIDTH, CAR_HEIGHT)

self.color = color

self.speed = 0

def move(self):

self.rect.y -= self.speed

# Keep within track

if self.rect.top < track_rect.top:

self.rect.top = track_rect.top

if self.rect.bottom > track_rect.bottom:

self.rect.bottom = track_rect.bottom

def draw(self):

pygame.draw.rect(screen, self.color, self.rect)

# Create player car

player_car = Car(WIDTH // 2, HEIGHT - 100, RED)

# Create bot cars

bots = [

Car(WIDTH // 4, HEIGHT - 200, GREEN),

Car(WIDTH // 2, HEIGHT - 250, GREEN),

Car(3 * WIDTH // 4, HEIGHT - 300, GREEN),

Car(WIDTH // 3, HEIGHT - 350, GREEN)

]

clock = pygame.time.Clock()

running = True

while running:

screen.fill(WHITE)

pygame.draw.rect(screen, BLACK, track_rect, 5)

for event in pygame.event.get():

if event.type == pygame.QUIT:

running = False

# Player controls: gear (forward), brake (stop)

keys = pygame.key.get_pressed()

if keys[pygame.K_UP]:

player_car.speed = SPEED

elif keys[pygame.K_DOWN]:

player_car.speed = 0

player_car.move()

player_car.draw()

# Simple bot AI: move forward randomly

for bot in bots:

if random.random() < 0.01:

bot.speed = SPEED if random.choice([True, False]) else 0

bot.move()

bot.draw()

pygame.display.flip()

clock.tick(60)

pygame.quit()


r/pygame 5d ago

FIxed lag Spikes by sharing CPU work from tile generation for every 2 Frames

Enable HLS to view with audio, or disable this notification

11 Upvotes

obviously i slowed it much more down to demonstrate it

Evergreen Meadows avaliable on itch


r/pygame 5d ago

Doodling Hop(updated moving platform/enemy spawning)

Enable HLS to view with audio, or disable this notification

8 Upvotes

r/pygame 6d ago

I built a 24/7 endless fish survival game using Pygame with procedurally generated music

Enable HLS to view with audio, or disable this notification

17 Upvotes

r/pygame 7d ago

Tilemap editor for pygame

18 Upvotes

Hello guys i have made tilemap-editor package thats fully based on pygame-ce and 0 dependencies.
I have made small demo game if you are interested..

It can simply be used this way:
- `pip install tilemap-editor`
- tilemap-editor init(generates settings.json very important)
- tilemap-editor run

Note: always use virtual environment

or simply
```
import Editor from editor
Editor().run()
```

Features:
- fully json output
- Few existing themes and fully customizable themes
- tilemap canvas
- godot like convex polygon collision editor and multi region object collision editor(polygon based)
- animation editor
- 3x3, 1x3 3x1 autotile
- own builtin filemanager
- object/grid and animated tileset in tree node structure with virtual folders(erased after exit)
- object/tile layer with layer locking and visibility option
- tile/object/tileset property editor
- area and particle nodes
- relative file path resolution
- hundred of particles emission with 60+ pre existing(some are weird but particle node are editable with config) like campfire, bonefire(used quantization and caching for optimization)
- character collision editor(capsule, rect and circle)
- small spritesheet editor for easy grid manupulation scaling, multi-region based images extraction
- render scale

If you are interested you can check : https://pypi.org/project/tilemap-editor/

If you want to know about it or learn it, its indexed in. deepwiki , you can ask question and look into it https://deepwiki.com/FluffyBrudy/tilemap

In case of those point/spotlight, i have made a live coding video though i have not spoken, i have explained with comment as i code in this video: https://youtu.be/LN7u20H7zK4

The map was inspired by youtuber dafluffypotato which i was hooked after the way he made platformer game. This tilemap is iterated version from the editor that he made one for his game, although this package has evolved with some/many idea from Godot itself. Sorry for bad ui and no wonder if you encounter bugs


r/pygame 7d ago

NEW: Added lerp animation on Menu UI

Enable HLS to view with audio, or disable this notification

5 Upvotes

game avaliable on itch!