10 lines
289 B
Python
10 lines
289 B
Python
|
from src.obj.Object import Object
|
||
|
|
||
|
|
||
|
class Goal(Object):
|
||
|
def __init__(self, position, square_size, screen_size):
|
||
|
super().__init__("goal", position, 0, square_size, screen_size)
|
||
|
|
||
|
def collide_test(self, waiter: Object) -> bool:
|
||
|
return waiter.position == self.position
|