Constructor
new TransparentWall(camera, x, y, side, screenX, texC)
Parameters:
Name |
Type |
Description |
camera |
Camera
|
|
x |
number
|
x coordinate in map |
y |
number
|
y coordinate in map |
side |
number
|
|
screenX |
number
|
screen strip containing this wall |
texC |
number
|
entry to look up for texture |
- Source:
Methods
display(canvas, verticalAdjustment)
Parameters:
Name |
Type |
Description |
canvas |
p5.Renderer
|
|
verticalAdjustment |
number
|
|
- Source:
getPerpDist(x)
get perpendicular distance between camera and the wall
Parameters:
Name |
Type |
Description |
x |
number
|
|
- Source:
getRayDir(x, side, cameraXCoords)
Parameters:
Name |
Type |
Description |
x |
number
|
|
side |
number
|
|
cameraXCoords |
Array
|
the loop up table for cameraX |
- Source: