Add position for GameObject
This commit is contained in:
parent
73ceab624b
commit
c78b85b05a
1 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ class GameObject:
|
|||
"""Инициализация объекта."""
|
||||
self.position_ = []
|
||||
|
||||
@property
|
||||
def position(self):
|
||||
return self.position_
|
||||
|
||||
def generate_random_position(self) -> list[int]:
|
||||
"""
|
||||
Генерация случайный позиции для объекта.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue