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.

set view mode

Problem it solves

You want to force the camera into top-down mode during a cutscene or switch back to 3D mode when gameplay begins.

What this block does

Changes the rendering mode directly to either flat tilemap mode or 3D raycasting mode.

The block

Block ID: rcRender_setViewMode

set view mode $viewMode block

Parameters

NameTypeDefaultMeaning
viewModeViewModeThe desired view mode (ViewMode.tilemapView or ViewMode.raycastingView).

Returns

void — Nothing.

Example

Render.setViewMode(ViewMode.tilemapView)

Add the extension

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