def __init__(self):
      
      lifetime = randint(300, 400)
      vortex = Vortex.random_vortex()
      
      BaseItem.__init__(self, lifetime, vortex)

      self.points = []
      self.coords = []

      self.history = randint(15, 30)
      self.height = uniform(0.5, 3.25)
 
      c = uniform(0.0005, 0.8)   # 0.0001 to 0.8 for vortex
      self.color = [c, c, c, 1.0]   # gives the strips various intensities
            
      # Initializes the texture (for donna's as well)
      try:
         self.texture = get_strip()
      except:
         self.texture = get_dancer()
         
      self.initialize()
      self.step()     # This step() results in self.buffer() being defined
      
      self.transforms = [[0.,0.,0.],[0.,0.,0.],1.]
      self.pos = [0.,0.,0.]
 def __init__(self):
    
    lifetime = randint(300, 500)  # 400, 600
    vortex = Vortex.random_vortex()
    
    BaseItem.__init__(self, lifetime, vortex)
    
    c = [settings.get_uniform('particle-red-range'), \
       settings.get_uniform('particle-green-range'), \
       settings.get_uniform('particle-blue-range'), \
       settings['particle-transparency']]
    self.color = c
    
    # set transform for z to be 1 above floor
    self.transforms = [[0.,0.,1.],[0.,0.,0.],1.]
    self.pos = [0.,0.,0.]
    
    RandPlay()
Exemple #3
0
 def add_particle(self):
    self.particles.append(Emblem(randint(2000, 3000), Vortex.random_vortex()))
Exemple #4
0
 def add_particle(self):
    self.particles.append(BrushStroke(randint(400, 500), Vortex.random_vortex()))
Exemple #5
0
 def RandomParticleTrail():
    return ParticleTrail(randint(400, 550), Vortex.random_vortex())
Exemple #6
0
 def RandomParticle():
    return Particle(randint(400, 600), Vortex.random_vortex())
Exemple #7
0
 def add_particle(self):
    self.particles.append(Particle(randint(400, 600), Vortex.random_vortex()))