forked from bedohswe/p3he
Remove a useless cast.
This commit is contained in:
parent
7000cfa685
commit
7cbe55bd7f
4
main.py
4
main.py
@ -114,8 +114,8 @@ def mainLoop():
|
|||||||
display.blit(cRot_surf, (0, fps_surf.get_height() + fontSize))
|
display.blit(cRot_surf, (0, fps_surf.get_height() + fontSize))
|
||||||
pygame.draw.rect(display, BLACK, (0, 100, 200, 200))
|
pygame.draw.rect(display, BLACK, (0, 100, 200, 200))
|
||||||
for i in level:
|
for i in level:
|
||||||
a = complex(Poincare2Klein(i.pointA))
|
a = Poincare2Klein(i.pointA)
|
||||||
b = complex(Poincare2Klein(i.pointB))
|
b = Poincare2Klein(i.pointB)
|
||||||
pygame.draw.line(display, i.color, (a.real * 100 + 100, (a.imag * 100 + 200)), (b.real * 100 + 100, (b.imag * 100 + 200)))
|
pygame.draw.line(display, i.color, (a.real * 100 + 100, (a.imag * 100 + 200)), (b.real * 100 + 100, (b.imag * 100 + 200)))
|
||||||
c = complex(Poincare2Klein(gPlayer.cPos))
|
c = complex(Poincare2Klein(gPlayer.cPos))
|
||||||
pygame.draw.rect(display, WHITE, (c.real * 100 + 95, (c.imag * 100 + 195), 10, 10))
|
pygame.draw.rect(display, WHITE, (c.real * 100 + 95, (c.imag * 100 + 195), 10, 10))
|
||||||
|
Loading…
Reference in New Issue
Block a user