Beispiel #1
0
	def __init__(self, driver, num_peepers=10, **kwargs) :
		AetherParamModule.__init__(self,driver,**kwargs)
	 
		#Define some parameters - see below
		#positions = [(50,50),(100,50),(150,50)]
		positions = [(x,-10) for x in range(10,self.dims[0],120)]
		colors = [(x,x,0) for x in range(0,200,150)] #[(255,0,0),(255,255,0),(0,255,0),(0,255,255),(0,0,255),(0,0,0)]
		speeds = [1,4]
		disperse = 360
		direction = 0
		density = 8
		framestolast = 200
		#Make the particle system objects
		self.systems = []
		for position in positions :
			self.systems.append(particle_system(position,colors,speeds,disperse,direction,density,framestolast))
			self.systems[-1].set_gravity((0,0.1))
Beispiel #2
0
	def __init__(self, driver, **kwargs) :
		AetherParamModule.__init__(self,driver,**kwargs)
		self.boid_init()