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.