A commit.
This commit is contained in:
parent
4f30139286
commit
d6e5cf9b5d
4
main.py
4
main.py
@ -10,10 +10,10 @@ from lines import *
|
|||||||
|
|
||||||
def deg2rad(rA): return rA/180*PI
|
def deg2rad(rA): return rA/180*PI
|
||||||
|
|
||||||
|
I = complex(0,1)
|
||||||
WHITE = (255,255,255)
|
WHITE = (255,255,255)
|
||||||
BLACK = (0,0,0)
|
BLACK = (0,0,0)
|
||||||
OFFSET = 0.015625
|
OFFSET = 0.015625
|
||||||
I = complex(0,1)
|
|
||||||
PI = 3.14159265358979323846264338327
|
PI = 3.14159265358979323846264338327
|
||||||
ROT = cNorm(exp(deg2rad(2)*I))
|
ROT = cNorm(exp(deg2rad(2)*I))
|
||||||
IROT = 1/ROT
|
IROT = 1/ROT
|
||||||
@ -37,7 +37,7 @@ level = [
|
|||||||
Segment(False,.5,I*.5,(255,0,0)),
|
Segment(False,.5,I*.5,(255,0,0)),
|
||||||
Segment(False,.5,-I*.5,(0,255,0)),
|
Segment(False,.5,-I*.5,(0,255,0)),
|
||||||
Segment(False,-.5,-I*.5,(0,0,255)),
|
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):
|
def draw(level,gPlayer,fov,res):
|
||||||
|
Loading…
Reference in New Issue
Block a user