This commit is contained in:
bʰedoh₂ swé 2024-04-03 19:22:44 +05:00
parent 42f88ff93b
commit 380b9f96a4

View File

@ -102,6 +102,8 @@ def mainLoop():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_q:
gPlayer.cRot *= -1
if event.key == pygame.K_F3:
debugInfo = not debugInfo
keys = pygame.key.get_pressed()
if keys[pygame.K_d]:
gPlayer.rotate(ROT)
@ -111,8 +113,6 @@ def mainLoop():
gPlayer -= GyroVector(OFFSET * gPlayer.cRot, 1)
if keys[pygame.K_s]:
gPlayer += GyroVector(OFFSET * gPlayer.cRot, 1)
if keys[pygame.K_F3]:
debugInfo = not debugInfo
display.fill(WHITE)
#pygame.draw.rect(display,BLACK, c_tr(Poincare2Klein(gPlayer.cPos) * -100) + (100,100),0)