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 angle

Problem it solves

You want to make the player instantly face North (270°) or East (0°) when entering a new room.

What this block does

Sets the 3D camera facing direction to a specific angle in degrees (0 to 360).

The block

Block ID: rcRender_setViewAngleInDegree

set view angle$angle block

Parameters

NameTypeDefaultMeaning
anglenumber90Direction angle in degrees (0 = East, 90 = South, 180 = West, 270 = North).

Returns

void — Nothing.

Example

Render.setViewAngleInDegree(180)

Add the extension

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