particle systems are something i am still trying to do again, to make use of structures and graphics. text mode particle system draft, python i'll use a normal structure, even though they are slow in python.
class Particle:
def __init__(self, x, y, duration, xv = 0, yv = 0):
self.x = x
self.y = y
self.t = duration
self.xv = xv
self.yv = yv
def update(self, time):
self.x += self.xv * time
self.y += self.yv * time
self.t -= duration
return self.t >= 0
class ParticleGenerator:
def __init__(self)
