My first RayCaster with miniLibX -----------------------> This project is inspired by the world-famous Wolfenstein 3D game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.
Issue p2 -> The texture to apply it is not been asigned correctly.
~ Idea for apply diferent textures:
// Now i have these into drawcast function //
mlx_resize_image(img_rays[r], scale, lineH + lineO);
img_rays[r]->instances[0].x = START_PX + r * scale;
img_rays[r]->instances[0].y = (SCR_HEIGHT / 2) - (lineH + lineO) / 2;
~ To change the texture, maybe i will need:
[] img_rays_n
[] img_rays_s
[] img_rays_e
[] img_rays_w
And make them ->instances[0].*enabled // or disabled
Apply textures ~ IN PROGRESS ~
~ Idea for apply diferent textures:
~ To change the texture, maybe i will need:
And make them ->instances[0].*enabled // or disabled