game: core: recreate classes see other paddle

This commit is contained in:
2024-01-17 19:06:36 +01:00
parent 6983983e58
commit 1af55795d9
13 changed files with 295 additions and 191 deletions

View File

@ -7,4 +7,13 @@ class Position:
self.position = position
def copy(self):
return Position(self.position, self.time)
return Position(self.position, self.time)
def to_dict(self):
data: dict = {
"position": self.position,
"time": self.time,
}
return data