score: raus
This commit is contained in:
parent
949317a8d2
commit
5f7ce5417f
@ -167,13 +167,15 @@ class Score(GameObject):
|
|||||||
def draw(self, window):
|
def draw(self, window):
|
||||||
|
|
||||||
text = self.font.render(
|
text = self.font.render(
|
||||||
f"Score: {self.score}",
|
f"{self.score}",
|
||||||
True,
|
True,
|
||||||
(255, 255, 255)
|
(255, 255, 255)
|
||||||
)
|
)
|
||||||
|
|
||||||
window.screen.blit(text, (10, 10))
|
window.screen.blit(text, (10, 10))
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""
|
"""
|
||||||
Main-Funktion mit Game-Loop
|
Main-Funktion mit Game-Loop
|
||||||
|
|||||||
@ -140,7 +140,7 @@ class BouncingBall(GameObject):
|
|||||||
"""
|
"""
|
||||||
def __init__(self, window):
|
def __init__(self, window):
|
||||||
self.window = window
|
self.window = window
|
||||||
self.image = pygame.image.load('ohm.png')
|
self.image = pygame.image.load('A9/ohm.png')
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.rect.left = window.width // 2 - self.rect.width // 2
|
self.rect.left = window.width // 2 - self.rect.width // 2
|
||||||
self.rect.top = window.height // 2 - self.rect.height // 2
|
self.rect.top = window.height // 2 - self.rect.height // 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user