From 9d989a52a64647242caea15f44ffa728eb2331ac Mon Sep 17 00:00:00 2001 From: Megamichi Date: Sun, 21 Jan 2024 19:23:36 +0100 Subject: [PATCH] oke brauch doch hilfe --- main copy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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