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 set the starting position, collision behavior, or properties of the player character camera in your 3D game.

What this block does

Returns the automatically created player sprite that holds the camera viewpoint and handles standard 2D physics and collisions.

The block

Block ID: rcRender_getRenderSpriteVariable

myself sprite block

Returns

Sprite — The player's camera viewpoint sprite.

Example

let mySprite = Render.getRenderSpriteVariable()
mySprite.setPosition(80, 80)

Add the extension

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