forked from bedohswe/p3he
Remove some comments.
This commit is contained in:
parent
983bad10a5
commit
4c7572208a
7
main.py
7
main.py
@ -57,8 +57,6 @@ def draw(level,gPlayer,fov,res):
|
||||
m = DrawnSegment(0,BLACK)
|
||||
rot = irot**(i-(res/2)) * iprot
|
||||
for j in level:
|
||||
#tA = MobiusAdd(j.pointA,-gPlayer.cPos)
|
||||
#tB = MobiusAdd(j.pointB,-gPlayer.cPos)
|
||||
try: # Function "LineIntersection" faults from time to time
|
||||
cInt = MobiusInt(j.pointA,j.pointB,gPlayer.cPos,rot)
|
||||
except ZeroDivisionError:
|
||||
@ -97,8 +95,6 @@ def mainLoop():
|
||||
debugInfo = True
|
||||
|
||||
while True:
|
||||
#framestart = time_ns()
|
||||
|
||||
for event in pygame.event.get():
|
||||
if event.type == pygame.QUIT:
|
||||
return True
|
||||
@ -122,7 +118,6 @@ def mainLoop():
|
||||
gPlayer += GyroVector(OFFSET * gPlayer.cRot, 1)
|
||||
|
||||
display.fill(WHITE)
|
||||
#pygame.draw.rect(display,BLACK, c_tr(Poincare2Klein(gPlayer.cPos) * -100) + (100,100),0)
|
||||
drawn = draw(level,gPlayer,PI/4,320)
|
||||
pygame.draw.rect(display,SKY, (0,0,1280,360))
|
||||
pygame.draw.rect(display,GROUND, (0,360,1280,360))
|
||||
@ -144,9 +139,7 @@ def mainLoop():
|
||||
|
||||
pygame.display.update()
|
||||
|
||||
#frameend = time_ns()
|
||||
clock.tick()
|
||||
#sleep((frameend-framestart) / F_)
|
||||
return True
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user