Compare commits

..

No commits in common. "753022bfb3ca953a6eea1a45ecbc6d68c46bd506" and "a0a33254e36f4e61b7b736cb6884e7951e70e35a" have entirely different histories.

View File

@ -8,6 +8,7 @@ import pygame.freetype
from gyro import *
from lines import *
def deg2rad(rA): return rA/180*PI
I = complex256(complex(0,1))
@ -74,7 +75,7 @@ def cap(rN):
def mainLoop():
gPlayer = GyroVector(0,1)
display = pygame.display.set_mode((1280,720))
font = pygame.freetype.Font(None,18)
font = pygame.freetype.Font(None,24)
while True:
framestart = time_ns()
@ -102,10 +103,8 @@ def mainLoop():
for i in drawn:
pygame.draw.rect(display,i.color, (n,360 - (cap(i.height) * 360),10,cap(i.height) * 1000))
n += 8
font.render_to(display, (8, 8), "cPos: " + str(gPlayer.cPos), (255, 255, 255), (0, 0, 0))
font.render_to(display, (8, 26), "cRot: " + str(gPlayer.cRot), (255, 255, 255), (0, 0, 0))
font.render_to(display, (20, 150), str(gPlayer.cPos), (0, 0, 0))
font.render_to(display, (20, 250), str(gPlayer.cRot), (0, 0, 0))
pygame.display.update()
frameend = time_ns()