diff --git a/main copy.py b/main copy.py index 00d90c7..9266cab 100644 --- a/main copy.py +++ b/main copy.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 from math import sin,cos +from time import sleep import pygame def berechne_dreieck(alpha,c): a = cos(alpha)*c# x @@ -26,7 +27,6 @@ default_font = pygame.font.SysFont("sans", 14) start_pos = screensize[0]/2,screensize[1]/2#(10,screensize[1]-10) winkel = 0 -print(berechne_dreieck(45,10)) running = True if __name__ == "__main__": while running: @@ -62,5 +62,6 @@ if __name__ == "__main__": get_debug_text() pygame.display.flip() - clock.tick(1) + clock.tick(30) + #sleep(1) winkel += 1 \ No newline at end of file