Sulig / Cub3D

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.
2 stars 0 forks source link

Apply textures #9

Open Sulig opened 1 week ago

Sulig commented 2 days ago

Apply textures ~ IN PROGRESS ~

~ 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:

And make them ->instances[0].*enabled // or disabled