Erstelle eine eigene Klasse, die einen 60 Pixel breiten Kreis repräsentiert, der sich horizontal über den Bildschirm bewegt. Beim Zusammenstoß mit einer der Wände kehrt er seine horizontale Bewegungsrichtung um und ändert seine Farbe zu einem zufälligen Wert. Erstelle ein Objekt von dieser Klasse, positioniere es im Zentrum der Zeichenfläche und…
-
Updated
Dec 22, 2021 - Java