# Raycasting 3D render -- Blocks Edition

**URL:** <https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921>\
**Category:** Game Design\
**Tags:** game, graphics-and-math, extension\
**Created:** [April 1, 2022, 6:23pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921 "2022-04-01T18:23:28Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![ethan](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@ethan](https://forum.makecode.com/u/ethan)\
**Post date:** [December 18, 2023, 5:31am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/268 "2023-12-18T05:31:42Z")

</div>

i would like to see the blocks or lines of code used to make the demo project

---

<div class="post-metadata">

**Author:** ![ethan](https://avatars.discourse-cdn.com/v4/letter/e/8dc957/32.png) [@ethan](https://forum.makecode.com/u/ethan)\
**Post date:** [December 20, 2023, 6:39pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/269 "2023-12-20T18:39:31Z")

</div>

you can just make the door a sprite and plae it on the tile it wont look as good but it works well

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [December 29, 2023, 6:17pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/270 "2023-12-29T18:17:06Z")

</div>

could you please add floor tiles in? i mean someone did it so

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [December 29, 2023, 8:55pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/271 "2023-12-29T20:55:40Z")

</div>

The reason why I didn’t enable the feature rendering floor, is it can’t work on consoles. But nowadays, seldom mentioned playing on console. This is such pity, make game on console is the most wonderful feature of Makecode Arcade. As more and more gamer played on sim, seams no body cares about how it works on console any more.  
Alright, I will release it someday.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [December 29, 2023, 10:30pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/272 "2023-12-29T22:30:30Z")

</div>

Hah, my favorite way to play the 3d games is on my meowbit! XD

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [January 2, 2024, 5:42pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/273 "2024-01-02T17:42:34Z")

</div>

thanks!

---

<div class="post-metadata">

**Author:** ![Lrigby22](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lrigby22/32/7367_2.png) [@Lrigby22](https://forum.makecode.com/u/Lrigby22)\
**Post date:** [January 17, 2024, 7:59pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/274 "2024-01-17T19:59:07Z")

</div>

![Screenshot 2024-01-17 104305](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/88d8d6099c2f02d24c9311075cc5ceb60dcc62d2.png)  
 ![Screenshot 2024-01-17 104353](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8b647158b07d5ea85ebfd303c952a1440cb5e15e.png)  
Seeking help!  
I’m currently trying to make a 3D tilemap that shows 32x32 tiles on walls so I create a 3D gallery to move through. **I’m restricted to Block code** at the moment as I have Java experience at all (willing to learn just hoping to solve this without!).  
I’m trying to emulate the **Moskal 3D map** model but without an array of pictures but instead adding different tile pictures all over. My closest attempt led me to replacing tiles (similar to **Cutscene example** ) but it didn’t quite work out.  
Could anyone help/advise? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [January 18, 2024, 5:23pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/275 "2024-01-18T17:23:57Z")

</div>

Are you trying to set texture for walls?  
Should set texture image on tiles, instead of any sprites on locations.

---

<div class="post-metadata">

**Author:** ![Tech\_Info](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tech_info/32/29295_2.png) [@Tech\_Info](https://forum.makecode.com/u/Tech_Info)\
**Post date:** [January 19, 2024, 6:06pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/276 "2024-01-19T18:06:51Z")

</div>

HELP ME

 ![screenshot-1-19-2024 5_52 pm](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/45773a5e06283f009274968be97c4c8138c339e9.jpeg)  
The Raycasting Not Working Again  
How To Handle It ?

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [January 22, 2024, 10:40pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/277 "2024-01-22T22:40:13Z")

</div>

Is there wall tiles in your tilemap?

---

<div class="post-metadata">

**Author:** ![jackal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jackal/32/19506_2.png) [@jackal](https://forum.makecode.com/u/jackal)\
**Post date:** [January 22, 2024, 10:40pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/278 "2024-01-22T22:40:15Z")

</div>

first question is: did you make a tilemap?

---

<div class="post-metadata">

**Author:** ![Tech\_Info](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tech_info/32/29295_2.png) [@Tech\_Info](https://forum.makecode.com/u/Tech_Info)\
**Post date:** [January 25, 2024, 1:34am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/279 "2024-01-25T01:34:09Z")

</div>

i already put a tilemap and then its not working again and how i fix it now or i 💀 💀 💀 💀

---

<div class="post-metadata">

**Author:** ![Tech\_Info](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tech_info/32/29295_2.png) [@Tech\_Info](https://forum.makecode.com/u/Tech_Info)\
**Post date:** [January 25, 2024, 9:33pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/280 "2024-01-25T21:33:27Z")

</div>

forget it _i already fix it_

---

<div class="post-metadata">

**Author:** ![Tech\_Info](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tech_info/32/29295_2.png) [@Tech\_Info](https://forum.makecode.com/u/Tech_Info)\
**Post date:** [February 3, 2024, 11:43pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/281 "2024-02-03T23:43:14Z")

</div>

Try this game that i made  
 ![arcade-3D-Maze-Shooter](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/348e841b7782228ffb0a1fdf395794142b248aeb.png) or :boom:

---

<div class="post-metadata">

**Author:** ![Mob112](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Mob112](https://forum.makecode.com/u/Mob112)\
**Post date:** [February 22, 2024, 5:47pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/282 "2024-02-22T17:47:46Z")

</div>

any clue on how to be able to shoot a projectile from the z axis? everytime I try the projectile just doesnt exist, for example I mean the projectile shooting from the top of a sprite

---

<div class="post-metadata">

**Author:** ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)\
**Post date:** [April 2, 2024, 5:16pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/283 "2024-04-02T17:16:19Z")

</div>

I see that in a new update of this extension tiles that are not walls do not render. Can you change this back because I need you to be able to walk through a wall in a part of my game

---

<div class="post-metadata">

**Author:** ![sillysnowi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sillysnowi/32/14304_2.png) [@sillysnowi](https://forum.makecode.com/u/sillysnowi)\
**Post date:** [April 4, 2024, 9:40pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/284 "2024-04-04T21:40:07Z")

</div>

I also think this should be added back, maybe as a simple boolean to render non-walls. As of right now the only way is to find an older project (one that was made before only walls were made visible) and edit off of that.

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [April 5, 2024, 4:47pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/285 "2024-04-05T16:47:55Z")

</div>

I agree render all non-transpatren tiles will give game more possibility. As repo history, “walls filter” is involved from 0.3.16, in which I tried the floor render. Floors have tiles, so only render walls as cube, non-walls tile as floor. This logic (render all non-transpatren tiles as cube) will not apply to floor version in future. (thought floor render didn’t be actived yet)  
All makers using this extension, let me know if you have a proper logic?

---

<div class="post-metadata">

**Author:** ![Awesomefreez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/awesomefreez/32/24832_2.png) [@Awesomefreez](https://forum.makecode.com/u/Awesomefreez)\
**Post date:** [April 12, 2024, 5:52pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/286 "2024-04-12T17:52:46Z")

</div>

how can you do this in blocks?

---

<div class="post-metadata">

**Author:** ![SellMoreOf](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@SellMoreOf](https://forum.makecode.com/u/SellMoreOf)\
**Post date:** [April 21, 2024, 11:24pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/287 "2024-04-21T23:24:12Z")

</div>

Why does the player have movement already attached to “myself sprite”, this makes it difficult to implement more flexible controls (strafing). I have been trying to code so that you can walk with WASD and turn the camera with the player 2 controls (IJKL). I set the built in block so that i 0 speed and 0 turn speed, but it clashes with the default controls, which I’m not able to remove (I’m not good in javascript or python)

[Previous page](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921.md?page=13)

[Next page](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921.md?page=15)
