Daniyel03 / cub3d

0 stars 0 forks source link

walking and rendering #27

Closed Daniyel03 closed 2 weeks ago

Daniyel03 commented 1 month ago

invalid wall rendering: image

might has to do something with the fact that walking through a wall diagonally is possible (my part to fix);

meaning we could "glitch" thourgh the bottom right wall:

11111111 10N10011 10100111 11111111

but with the map given in the screenshot, walking through the border of and causing a seg fault still doesnt work since we got a whole -1 border around the walls.

Daniyel03 commented 3 weeks ago

|| wall_pos.x < 1 would fix it:

image

pls approve @Han2-Ro

Han2-Ro commented 2 weeks ago

I just removed this if statement with the power of structures.