This should work, but it doesn't

This commit is contained in:
Logan G 2023-12-03 00:20:02 -07:00
parent 86d41e5057
commit e0a7f7992d
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -70,10 +70,11 @@ while running:
bs_scale = (random.random() + 1)
if t < 6.2831 * bs_scale:
#d_ang = (math.cos(t + 3.1415 * bs_scale) + 1) / (t + 1)
d_ang = (math.e**(-2*t)) * (math.cos(0.25*t*bs_scale) + 1)
d_ang = (math.e**(-0.7*t)) * (math.cos(0.25*t*bs_scale) + 1)
ang += d_ang * (random.random() / 2 + 1)
else:
i = int(-((ang + (360/len(items)/2)) % 360) / (360 / len(items)))
i = int( (((ang - 45) % 360) + (360/len(items)) / 2) // (360/len(items)) )
print(ang)
print(items[i])
bigfont = pygame.font.SysFont(None, 112)