First hack to get a random gen map going.
This commit is contained in:
parent
2daa1c9bd5
commit
56d67aba28
7 changed files with 72 additions and 34 deletions
|
@ -240,7 +240,7 @@ void Raycaster::cast_rays() {
|
|||
int drawEnd = lineHeight / 2 + $height / 2 + $pitch;
|
||||
if(drawEnd >= $height) drawEnd = $height - 1;
|
||||
|
||||
auto texture = $textures.get_texture($map[mapY][mapX] - 1);
|
||||
auto texture = $textures.get_surface($map[mapY][mapX] - 1);
|
||||
|
||||
// calculate value of wallX
|
||||
double wallX; // where exactly the wall was hit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue