First hack to get a random gen map going.

This commit is contained in:
Zed A. Shaw 2025-01-30 13:23:12 -05:00
parent 2daa1c9bd5
commit 56d67aba28
7 changed files with 72 additions and 34 deletions

View file

@ -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