Beispiel #1
0
 def collide_bubble(self, x, y):
     return circle_collidepoint(*self.pos, self.radius // 2, x, y)
Beispiel #2
0
 def collide_bullet(self, x, y):
     radius = self.bg_radius if self.armor_on[0] else self.radius
     return circle_collidepoint(*self.pos, radius, x, y)
Beispiel #3
0
 def collide_bullet(self, x, y):
     return circle_collidepoint(self.x, self.y, self.radius, x, y)
Beispiel #4
0
 def is_outside(self):
     return not circle_collidepoint(c.SCR_W2, c.SCR_H2, c.ROOM_RADIUS,
                                    self.x, self.y)
 def is_outside(self):
     """
     :return: Bullet is outside the room circle
     """
     return not circle_collidepoint(c.SCR_W2, c.SCR_H2, c.ROOM_RADIUS,
                                    self.x, self.y)