A commit.

This commit is contained in:
bʰedoh₂ swé 2024-04-03 17:30:52 +05:00
parent 4f30139286
commit d6e5cf9b5d

View File

@ -10,10 +10,10 @@ from lines import *
def deg2rad(rA): return rA/180*PI
I = complex(0,1)
WHITE = (255,255,255)
BLACK = (0,0,0)
OFFSET = 0.015625
I = complex(0,1)
PI = 3.14159265358979323846264338327
ROT = cNorm(exp(deg2rad(2)*I))
IROT = 1/ROT
@ -37,7 +37,7 @@ level = [
Segment(False,.5,I*.5,(255,0,0)),
Segment(False,.5,-I*.5,(0,255,0)),
Segment(False,-.5,-I*.5,(0,0,255)),
Segment(False,-.5,I*.5,BLACK)
Segment(False,-.5,I*.5,(255,255,0))
]
def draw(level,gPlayer,fov,res):