MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Raycasting 3D Render

Transforms your 2D tilemaps and sprites into a first-person 3D/2.5D raycasted world with jumping, heights, camera controls, and multi-directional animations.

toggle current view mode

Problem it solves

You want the player to switch between a top-down minimap view and the 3D first-person view whenever they press a button.

What this block does

Toggles the screen rendering between 2D flat tilemap mode and 3D raycasting mode.

The block

Block ID: rcRender_toggleViewMode

toggle current view mode block

Returns

void — Nothing.

Example

controller.menu.onEvent(ControllerButtonEvent.Pressed, function () {
    Render.toggleViewMode()
})

Add the extension

Add github:The-Code-Zone/Raycasting-pxt-extension to your project, or open: Import Raycasting-pxt-extension.