Example #1
0
 def __init__(self, position, radius, rotation, color):
     Circle.__init__(self, position, radius, rotation, color)
     self.position = position
     self.dx = 0
     self.dy = 0
     self.active = False
     self.onscreen = True
Example #2
0
	def __init__(self):
		position = Point(random.randint(0,config.SCREEN_X),random.randint(0,config.SCREEN_Y))
		radius = config.STAR_RADIUS
		rotation = 0
		random_color = random.randint(0, 255)
		color = (random_color, random_color , random_color)
		Circle.__init__(self, position, radius, color, rotation)
Example #3
0
 def __init__(self, x, y, world_width, world_height):
     dx = 0
     dy = 0
     rotation = 0
     radius = 2
     Circle.__init__(self, x, y, dx, dy, rotation, radius, world_width, world_height)
     self.mBrightness = random.randrange(0, 255)
Example #4
0
 def __init__(self, x, y, dx, dy, rotation, world_width, world_height):
     radius = 3
     Circle.__init__(self, x, y, dx, dy, rotation, radius, world_width,
                     world_height)
     self.mAge = 0
     self.accelerate(100.0)
     self.move(0.1)
Example #5
0
 def __init__(self, x, y, dx, dy, rotation, world_width, world_height):
     Newdx = dx + 100. * math.cos(math.radians(rotation))
     Newdy = dy + 100. * math.sin(math.radians(rotation))
     Circle.__init__(self, x + 0.1 * Newdx, y + 0.1 * Newdy, Newdx, Newdy,
                     rotation, 3, world_width, world_height)
     self.mAge = 0
     return
Example #6
0
	def __init__(self, context, x, y, r):
		Circle.__init__(self, context, x, y, r, 1, (100, 200, 0))

		self.mass = 1
		self.force = Vec2d(0, 0)
		self.acc = Vec2d(0, 0)
		self.vel = Vec2d(0, 0)
		self.power = 12
		self.keys = {}
Example #7
0
 def __init__(self, position, radius, rotation, color):
     Circle.__init__(self, position, radius, rotation, color)
     self.sposition = point.Point(random.randint(0, config.SCREEN_X),
                                  random.randint(0, config.SCREEN_Y))
     self.sradius = config.STAR_RADIUS
     self.srotation = 0.0
     self.scolornum = random.uniform(0, 255)
     self.color = (self.scolornum, self.scolornum, self.scolornum)
     self.add = True
Example #8
0
 def __init__(self,x,y):
     Circle.__init__(self, x, y, 5, 'Blue')
     Prey.__init__(self, x, y, 2*self.radius, 2*self.radius, 0, self.radius)
     self.randomize_angle()
Example #9
0
 def __init__(self, x, y, world_width, world_height):
     Circle.__init__(self, x, y, 0, 0, 0, 2, world_width, world_height)
     self.mBrightness = randint(0, 255)
Example #10
0
 def __init__(self, x, y, r, c):
     self.vel = Vector2D(0, 0)
     self.max_vel = 10
     Circle.__init__(self, x, y, r, c)
Example #11
0
	def __init__(self):
		Circle.__init__(self, Point(0, 0), 20 * config.BULLET_SIZE, config.BULLET_COLOR, 0.0)
		self.active = False
		self.nuke_count = 1
Example #12
0
 def __init__(self, x, y, r, c):
     self.vel = Vector2D(0, 0)
     self.max_velocity = 40
     self.path = []
     Circle.__init__(self, x, y, r, c)
Example #13
0
 def __init__(self, position, radius, rotation, color):
     Circle.__init__(self, position, radius, rotation, color)
     self.set_inactive()
Example #14
0
 def __init__(self,x,y):
     Circle.__init__(self, x, y, 10, 'Black')
Example #15
0
 def __init__(self, x, y, world_width, world_height):
     Circle.__init__(self, x, y, 0, 0, 0, 2, world_width, world_height)
     self.mBrightness = random.randint(0, 255)
     self.mColor = (self.getBrightness(), self.getBrightness(),
                    self.getBrightness())
     return
Example #16
0
	def __init__(self):
		Circle.__init__(self, Point(0, 0), config.BULLET_RADIUS, config.BULLET_COLOR, 0.0)
		self.active = False