3d level for game

I would like to learn how to make a 3d level for SPOILER => Bob but can’t figure it out how would I go about this?

I dont know how it works, but look up wolfenstein coding.

Here’s a basic summary of how to do it.

Send out several ray casts in a field of view (So 30 ray casts if the FOV is 30 (more can be used), which is just the POV basically).

When one of those ray casts hit a wall make a line, if the ray casts hit closer make it taller, and if it hits farther away make it shorter. (A tip is to make the lines darker if the line is farther away)

This video is really useful and simple Crazy Simple Raycasting E2 - 🎮 How to make awesome 3d games in Scratch - YouTube