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.

myself sprite

Problem it solves

You want to quickly check the player camera sprite's coordinates or apply effects directly without creating a new variable block.

What this block does

Returns the player camera sprite that raycasting uses for rendering and collision detection.

The block

Block ID: rcRender_getRenderSpriteInstance

myself sprite block

Returns

Sprite — The player sprite instance representing the first-person viewpoint.

Example

Render.getRenderSpriteInstance().setPosition(64, 64)

Add the extension

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