game: collision work

This commit is contained in:
2024-02-02 17:39:39 +01:00
committed by AdrienLSH
parent c7e7410baf
commit d45b8a306f
3 changed files with 32 additions and 39 deletions

View File

@ -15,6 +15,9 @@ class Segment:
def __str__(self) -> str:
return f"Segment(start: {self.start}, stop: {self.stop})"
def copy(self):
return Segment(self.start.copy(), self.stop.copy())
def to_dict(self):
data: dict[str: dict] = {