forked from bedohswe/p3he
Compare commits
2 Commits
3b2359aa41
...
4604f8224c
Author | SHA1 | Date | |
---|---|---|---|
4604f8224c | |||
4d7a95545b |
6
main.py
6
main.py
@ -151,9 +151,11 @@ def mainLoop():
|
|||||||
display.blit(cPos_surf, (0, fps_surf.get_height()))
|
display.blit(cPos_surf, (0, fps_surf.get_height()))
|
||||||
display.blit(cRot_surf, (0, fps_surf.get_height() + fontSize))
|
display.blit(cRot_surf, (0, fps_surf.get_height() + fontSize))
|
||||||
for i in level:
|
for i in level:
|
||||||
a = complex(Poincare2Klein(MobiusAdd(i.pointA,-gPlayer.cPos)))
|
a = complex(Poincare2Klein(i.pointA))
|
||||||
b = complex(Poincare2Klein(MobiusAdd(i.pointB,-gPlayer.cPos)))
|
b = complex(Poincare2Klein(i.pointB))
|
||||||
pygame.draw.line(display, WHITE, (a.real * 100 + 100, (a.imag * 100 + 200)), (b.real * 100 + 100, (b.imag * 100 + 200)))
|
pygame.draw.line(display, WHITE, (a.real * 100 + 100, (a.imag * 100 + 200)), (b.real * 100 + 100, (b.imag * 100 + 200)))
|
||||||
|
c = complex(Poincare2Klein(gPlayer.cPos))
|
||||||
|
pygame.draw.rect(display, WHITE, (c.real * 100 + 95, (c.imag * 100 + 195), 10, 10))
|
||||||
|
|
||||||
pygame.display.update()
|
pygame.display.update()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user