예제 #1
0
파일: player.py 프로젝트: kodo-pp/underkate
 def get_hitbox_for(pos: Vector) -> pg.Rect:
     x, y = pos.ints()
     return pg.Rect(x - 16, y + 4, 32, 32)
예제 #2
0
 def does_hit_at(self, pos: Vector):
     return bool(self.get_rect().collidepoint(pos.ints()))