sep-pm-platformer/project/sprite/BoundingBox.py

14 lines
288 B
Python
Raw Normal View History

2023-03-25 15:41:32 +01:00
class BoundingBox:
def __init__(self, x, y, width, height):
self.x = x
self.y = y
self.width = width
self.height = height
def get_dimensions(self):
return self.width, self.height
def get_position(self):
return self.x, self.y