oke brauch doch hilfe
This commit is contained in:
parent
8715af45b4
commit
9d989a52a6
1 changed files with 3 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue