passt sich nun den wondows an

This commit is contained in:
Michael S. 2024-01-23 15:26:56 +01:00
parent 48d9217816
commit c54deb4d30

View file

@ -26,7 +26,7 @@ def get_best_size():
if screensize[0] <= screensize[1]:
best = screensize[0]
else:
best = screensize[0]
best = screensize[1]
return best
pygame.init()
@ -62,7 +62,7 @@ if __name__ == "__main__":
best_radios = get_best_size()/2-20
if winkel >= 360 or winkel <= -1:
winkel = 0
a,b = berechne_dreieck(winkel,200)#screensize[0]*screensize[1])
a,b = berechne_dreieck(winkel,best_radios)#screensize[0]*screensize[1])
end_pos = start_pos[0]+a,start_pos[1]+b
# draw c schwarz