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
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| tilemap | tiles.TileMapData | The 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.