Files
pacmanpythondhbw/Game_Package/Point.py
T
2024-10-29 17:18:30 +01:00

18 lines
404 B
Python

from Entity import Entity
from Vec import Vec
class Point(Entity):
def __init__(self, start_position: Vec, start_size: Vec, big):
super().__init__(start_position, start_size)
self.eaten = False
self.big = big
# Wird ausgeführt, wenn der Punkt von PacMan berührt wird.
def eat(self):
self.eaten = True
def __str__(self):
return self.position