RUN THIS ON A GOOD COMPUTER, OR IT WILL BE SLOW AND LAGGY. This is a 3D engine that I have been working on since early 2025. It uses lists to store data about the vertices of each triangle, and uses the z-distance to decide which triangle to render first. To fill the triangle, I uses the linear interpolation formula to estimate and fill in exactly where the borders of each line of the triangle it. The camera is what controls where each triangle is. Using simples sine and cosine formulas for the direction and adding an FOV variable, I made a camera that renders triangles with pitch and yaw. I added transparency to some of the triangles to show the seamless rendering of the lines that fill them. (scroll down) Use WASD to move around and arrow keys to look. 3D engine. This is a polygon based engine, which means that it uses triangles to render shapes, characters, 3D models, and other shapes. Draw items based on Camera Yaw and Pitch. Fills triangles by interpolating each edge and filling it in. This works because in other 3D engines, triangles are filled by drawing a dot in the center and lines around it. When making the triangle transparent, you can see the uneven pattern, but in this engine, it looks much cleaner. It also only renders objects that are in front of you, and interpolates evenly through a 2D plane. Layering is currently messed up because scratch doesn't have individual pixel layering, but the engine works if you are making a cutscene. Collisions work by detecting if any of the vertices are closer than the radius of the hitbox of the player.
You can use it if you want, its kind of buggy with the layering so idk why anybody would use it, but you don't need to give me credit. I just made it to open a newer games on this platform, even though people have made better engines than this one.