Raycasting

This week we got introduced to building a 3d game using the Raycasting technique

This is taking a 2d tile map and making it work in 3d

We used the Makecode arcade editor to make our game.

We first brought in a tile map block and created a wall around the edge, we then created walls within the game screen and also highlighted them as walls

The next thing we did was installed the Raycasting extension, this automatically changed our game into 3d and gave us the ability to walk around our new world

The last thing we did was add a toggle button to switch back from 3d to 2d. This will make it easier when adding enemies and items

Have a look at the full code below

Previous
Previous

Password Generator

Next
Next

Brick Breaker