示例#1
0
 def __init__(self, x, y, r):
     self.bumps = 0
     
     self.geom = geom = Circle(x, y, r)
     geom.xp = x
     geom.yp = y
     
     self.rect = pygame.Rect(geom.aabb)
     self.image = render.silhouette(geom, COLOR3)
示例#2
0
 def __init__(self, x, y, r0, r1, angle0=-pi*.75, angle1=-pi*.25):
     geom = self.geom = Arc(x, y, r0, r1, angle0, angle1)
     geom.xp = x
     geom.yp = y
     
     self.fix = .1
     
     self.rect = pygame.Rect(geom.aabb)
     self.image = render.silhouette(geom, COLOR3)
示例#3
0
 def __init__(self, geom):
     self.touched = False
     self.geom = geom
     self.rect = pygame.Rect(geom.aabb)
     self.image = render.silhouette(geom, render.COLOR1)
     self.hitImage = render.silhouette(geom, render.COLOR2)
示例#4
0
 def __init__(self, x, y, r=12):
     self.geom = Circle(x, y, r)
     self.rect = pygame.Rect(self.geom.aabb)
     self.image = render.silhouette(self.geom, COLOR3)