# 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:** 8

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [January 23, 2023, 9:52pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/146 "2023-01-23T21:52:30Z")

</div>

Thanks for the reccomendation, and the welcome!  
I’ve seen that project before, and I’ve been messing around with it, but if I make the racetrack to big, it gets REAL glitchy and starts doing some really weird stuff. Any idea on the limit for the tilemp size?

---

<div class="post-metadata">

**Author:** ![Codeboy-Advanced](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeboy-advanced/32/11113_2.png) [@Codeboy-Advanced](https://forum.makecode.com/u/Codeboy-Advanced)\
**Post date:** [January 24, 2023, 7:22pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/147 "2023-01-24T19:22:00Z")

</div>

you could have it split into different tile maps and load them when needed.

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [January 24, 2023, 9:07pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/148 "2023-01-24T21:07:25Z")

</div>

How do I do that though-

---

<div class="post-metadata">

**Author:** ![Codeboy-Advanced](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeboy-advanced/32/11113_2.png) [@Codeboy-Advanced](https://forum.makecode.com/u/Codeboy-Advanced)\
**Post date:** [January 25, 2023, 5:34pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/149 "2023-01-25T17:34:31Z")

</div>

good question.

---

<div class="post-metadata">

**Author:** ![Shade9788](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Shade9788](https://forum.makecode.com/u/Shade9788)\
**Post date:** [January 26, 2023, 1:15am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/150 "2023-01-26T01:15:01Z")

</div>

ahh yes coming back alive again

---

<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 26, 2023, 7:05pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/151 "2023-01-26T19:05:47Z")

</div>

I totally agree @marioeligi 's answer:

> [@marioeligi](#):
>
> I don’t completely know about the entirety of this extension. With some work it’s gotta be _possible_, but you’ll have to ask @AqeeAqee about that.  
> But so far, you’ll probably just have to make the racetracks a single tile high.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:57pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/152 "2023-01-29T23:57:12Z")

</div>

how did you create the floor in it? I can only get the background.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:57pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/153 "2023-01-29T23:57:17Z")

</div>

Also about cameras could it be possible to make the camera individual per player when you’re playing the host multiplayer online? So p1 would see its character and p2 would see its character and so on.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:57pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/154 "2023-01-29T23:57:22Z")

</div>

could you make it so the ASWD are for moving, but the up and down arrow keys are for looking up and down pls😭.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:58pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/155 "2023-01-29T23:58:39Z")

</div>

how did you add the range or the closer you got to the block it changed color?

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:59pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/156 "2023-01-29T23:59:08Z")

</div>

Aqee Aqee do you think you make an extension like raycasting but with depth?

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:59pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/157 "2023-01-29T23:59:22Z")

</div>

then how is there a floor to be on top of?

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 29, 2023, 11:59pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/158 "2023-01-29T23:59:28Z")

</div>

This extension is a great addition!😁Do you think you could add depth to it? For example,making itt so you can go up and down hills or buildings.

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [January 30, 2023, 5:48pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/159 "2023-01-30T17:48:41Z")

</div>

> [@SOCKMONSTER12](#):
>
> could you make it so the ASWD are for moving, but the up and down arrow keys are for looking up and down pls😭.

That is not how Makecode works. WASD and the arrow keys work interchangeably.

> [@SOCKMONSTER12](#):
>
> Also about cameras could it be possible to make the camera individual per player when you’re playing the host multiplayer online? So p1 would see its character and p2 would see its character and so on.

I think he already said that it was possible.

> [@SOCKMONSTER12](#):
>
> how did you add the range or the closer you got to the block it changed color?

This could work. If you can find the distance between the player and the specific tile, then it should be pretty easy to change the colour based on that. But I’ve been using Godot recently so I’m not sure if this is possible in Makecode.

> [@SOCKMONSTER12](#):
>
> This extension is a great addition!😁Do you think you could add depth to it? For example,making itt so you can go up and down hills or buildings.

With Makecode’s limitations, I don’t think it’s possible. I don’t even think buildings are possible because we can’t even stack tiles.

> [@SOCKMONSTER12](#):
>
> then how is there a floor to be on top of?

Cube, referring to the tiles **above** the floor.

---

<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 30, 2023, 8:45pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/160 "2023-01-30T20:45:06Z")

</div>

Thanks a lot 🤣

---

<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 30, 2023, 11:10pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/161 "2023-01-30T23:10:42Z")

</div>

3D Raycasting with MakeCode Arcade: The Handbook.

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [January 30, 2023, 11:11pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/162 "2023-01-30T23:11:29Z")

</div>

thanks! do you think you could create an online camera extension, so when say player 2 is connected on an online game they see their sprite nobody else’s unless they’re close enough? If you can could you make it for 4 players pls🥺?

---

<div class="post-metadata">

**Author:** ![Leozlk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/leozlk/32/7436_2.png) [@Leozlk](https://forum.makecode.com/u/Leozlk)\
**Post date:** [February 2, 2023, 6:42am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/163 "2023-02-02T06:42:42Z")

</div>

I going to test it! I love this kind of “pseudo 3d” games.

---

<div class="post-metadata">

**Author:** ![Shade9788](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Shade9788](https://forum.makecode.com/u/Shade9788)\
**Post date:** [February 2, 2023, 5:28pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/164 "2023-02-02T17:28:04Z")

</div>

there is a problem when it comes to rendering the floors cause when u make a void off distance the game would freak out and the screen would break

---

<div class="post-metadata">

**Author:** ![SOCKMONSTER12](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sockmonster12/32/7584_2.png) [@SOCKMONSTER12](https://forum.makecode.com/u/SOCKMONSTER12)\
**Post date:** [February 3, 2023, 8:11am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/165 "2023-02-03T08:11:17Z")

</div>

is it possible to make this game multiplayer, so instead of just myself sprite there are also myself2, myself3, and so on?🥺🙏

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

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