ein docstring in moon eingefügt
apollo.py erstellt
This commit is contained in:
1 parent
0c59c96407
commit
a9ba1a66ce
2 files changed
+51
-1
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user