ein docstring in moon eingefügt

apollo.py erstellt
This commit is contained in:
Kata committed 2026-11-17 18:14:55 +01:00
1 parent 0c59c96407
commit a9ba1a66ce
2 files changed
+51 -1

No files matched your search

+3 -1
View File
@@ -56,7 +56,8 @@ class Moon(Game):
self.draw_space()
self.display()
def draw_space(self):
def draw_space(self) -> None:
"""Zeichnet Erde und Mond ohne die Anzeige zu aktualisieren."""
self.clear()
self.draw_earth()
self.draw_body(self.absolut(self.pos), MOON_RADIUS, WHITE)
@@ -72,6 +73,7 @@ class Moon(Game):
"""Zeichnet einen Himmelskörper an einer Position."""
pygame.draw.circle(self.screen, farbe, pos, radius)
if __name__ == "__main__":
moon = Moon()
moon.run()