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 attribute

Problem it solves

You want to create tall castle walls or zoom the camera in when the player uses binoculars.

What this block does

Sets global renderer settings including view vectors, field of view (FOV), and wall vertical scale.

The block

Block ID: rcRender_setAttribute

set %attribute = %value block

Parameters

NameTypeDefaultMeaning
attrattributeThe renderer attribute to modify (dirX, dirY, fov, or wallZScale).
valuenumberThe new numeric value to set.

Returns

void — Nothing.

Example

Render.setAttribute(Render.attribute.wallZScale, 2)

Add the extension

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