from github
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user