r/pygame • • 3d ago

I built a lightning simulator in Python using Pygame!

Hey everyone! 👋

I wanted to share a small side project I've been working on: a Lightning Simulator built completely from scratch in Python using the Pygame library. The goal was to recreate realistic electrical discharge patterns and branching structures on a 2D canvas in real time.

Tech Stack: Python, Pygame

Features: Dynamic branching, smooth rendering, and interactive controls to trigger storms directly on screen.

I'm focusing heavily on building a clean portfolio of physics and simulation projects right now.

You can check out the source code and documentation on my GitHub repo: EventHorizon-dev/lightning-simulator-2d

I'd love to hear your thoughts, feedback, or any ideas on how I could optimize the rendering performance! Thanks for checking it out!

8 Upvotes

0 comments sorted by