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.

defaultFov

Problem it solves

You zoomed the camera during an aiming state and need to reset the field of view back to normal afterwards.

What this block does

Returns the default field-of-view value (approximately 0.666) calculated for standard Arcade screen proportions.

The block

Block ID: rcRender_getDefaultFov

defaultFov block

Returns

number — The default field-of-view ratio.

Example

Render.setAttribute(Render.attribute.fov, Render.getDefaultFov())

Add the extension

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