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 ceiling as

Problem it solves

You are building an indoor dungeon or cave in 3D and need textures rendered above the player's head instead of an open sky.

What this block does

Sets a second tilemap to be used for rendering overhead ceiling textures. The tilemap dimensions must match your base tilemap.

The block

Block ID: rc_Render_setCeilingTilemap

set ceiling as $tilemap block

Parameters

NameTypeDefaultMeaning
tilemaptiles.TileMapDataThe tilemap data containing the ceiling textures.

Returns

void — Nothing.

Example

Render.setCeilingTilemap(tilemap`level1`)

Add the extension

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