oke brauch doch hilfe

This commit is contained in:
Michael S. 2024-01-21 19:23:36 +01:00
parent 8715af45b4
commit 9d989a52a6

View file

@ -1,5 +1,6 @@
#!/usr/bin/python3 #!/usr/bin/python3
from math import sin,cos from math import sin,cos
from time import sleep
import pygame import pygame
def berechne_dreieck(alpha,c): def berechne_dreieck(alpha,c):
a = cos(alpha)*c# x 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) start_pos = screensize[0]/2,screensize[1]/2#(10,screensize[1]-10)
winkel = 0 winkel = 0
print(berechne_dreieck(45,10))
running = True running = True
if __name__ == "__main__": if __name__ == "__main__":
while running: while running:
@ -62,5 +62,6 @@ if __name__ == "__main__":
get_debug_text() get_debug_text()
pygame.display.flip() pygame.display.flip()
clock.tick(1) clock.tick(30)
#sleep(1)
winkel += 1 winkel += 1