Can someone pls make raycasting with depth

I can only make games in raycasting without depth, (which is great thanks to aqee aqee,) but it would be nice to also have depth to make games like 1v1 lol or minecraft.

2 Likes

interesting question… i have the same issue and want to make a script that uses the raycaster extension for this, or create my own new raycasting system.

1 Like

There have been some attempts at this, many getting quite far, but I think the main issue is that even if you could show objects on the screen, you would need to define levels as hundreds of points. There is already a demo for 3D rendering by @Brohann: Brohann's 3D devlog you would just need to turn it into a game!

P.S. Posts older than a year or two generally shouldn’t be dragged up from the depths, so please check how old a post is before replying. That user hasn’t been on Makecode for over a year, so you probably won’t get a response anytime soon.

4 Likes

my faviorite makecode forum peaple ar reacting to stuuf where i chat! :grin:

btw, you can use the buildt in height of the raycasting extension to change your height and tilemap repeatedly and screenshot every frame and turning that into the backround.

1 Like

I umm… so… no…? I mean, yes, but also really no. You wouldn’t be able to give things bottom faces, and I believe the automatic tile culling in the extension will delete tiles that you “can’t see” and you’ll want to be able to see said tiles when looking from the bottom. Also the main issue isn’t the physical setup, it’s the lag. I would be surprised if that method works at more than 15fps. The issue is always going to be lag. Obviously it’s physically possible, but until you can run it at at least 30fps it’s not going to be very good.

1 Like