1. Dominic Kexel
  2. particlegame

Overview

This repository contains the (optimized) code from this StackOverflow answer.

It uses numpy, itertools and pygame.surfarray and eschews the random module for massive speed improvement.

in-game screenshot

(Here's an example using three emitters to create smoke, rain, and wind)