def update(self): # speed testing if self.velocity < 3.0: self.velocity += 0.025 # nh = self.next_headpoint # Self Collision Test h = self.headpoint.copy() if util.pointinside(nh, self.pointlist): self._dead += 1 # self.headpoint = nh
def update(self): nexthead = self.head_.position.move(self.head_.angle, self.head_.velocity) if util.pointinside(nexthead, self.polygon_pointlist): self.kill() super(Body, self).update()