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.

raycasting render

Problem it solves

You need direct access to the internal raycasting engine object to tweak advanced renderer internals.

What this block does

Returns the main singleton instance of the RayCastingRender engine.

The block

Block ID: rcRender_getRCRenderInstance

raycasting render block

Returns

RayCastingRender — The active raycasting render engine instance.

Example

let rc = Render.getRCRenderInstance()
console.log(rc.wallZScale)

Add the extension

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