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

<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:** [February 28, 2023, 12:38am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/186 "2023-02-28T00:38:39Z")

</div>

You can use @MrFranko ‘s 3D floor project.

---

<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 28, 2023, 1:53am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/187 "2023-02-28T01:53:21Z")

</div>

ok thanks @TheConeGuy

---

<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 28, 2023, 5:50pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/188 "2023-02-28T17:50:09Z")

</div>

Make code arcade was Meant for single player and is not capable of multiplayer unless makecode would need to change how the small machine works

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [February 28, 2023, 6:00pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/189 "2023-02-28T18:00:23Z")

</div>

Good news, @Shade9788, we’ve made some big changes over the last year, and you can now play multiplayer games online with up to four people!

> **[Online Multiplayer in MakeCode Arcade](https://medium.com/kikis-corner/online-multiplayer-a4534afdaa04)**
>
> Last week (under the radar) Microsoft MakeCode Arcade released the ability to play your games online with friends!

It’s true that there aren’t any of the physical tiny machines that are capable of hosting distributed multiplayer games yet, but hopefully someday 🙂

---

<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 28, 2023, 6:01pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/190 "2023-02-28T18:01:47Z")

</div>

How did you make the floor tiles that way?

---

<div class="post-metadata">

**Author:** ![Segatendo](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Segatendo](https://forum.makecode.com/u/Segatendo)\
**Post date:** [February 28, 2023, 10:53pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/191 "2023-02-28T22:53:09Z")

</div>

I was trying to work on enemies and jumping on them to destroy enemy

> **[Like this?](https://arcade.makecode.com/S59453-51384-80199-90858)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

didn’t really go so well

---

<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:** [February 28, 2023, 10:53pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/192 "2023-02-28T22:53:32Z")

</div>

Thanks for @Brohann Demo, I got it at once, LOL

For reasons, Arcade consoles can’t render Walls+Ground+Sprites, and optional ceilling, all in 3D fast enough yet, that’s why Raycasting extension render walls+sprites in 3D only.  
But this kind of 3D only calculate grounds(+ceilling), perf should be acceptable for a games, I guess. So it can be a good topic for another “3D” render extension. Especially plus multi-layer scrolls(called [  
Parallax scrolling](https://en.wikipedia.org/wiki/Parallax_scrolling))

BTW, what should I call this kind of view in english? Perspective Ground Scolling? 🤣

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://forum.makecode.com/u/Matthew)\
**Post date:** [February 28, 2023, 11:05pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/193 "2023-02-28T23:05:47Z")

</div>

Is there a way to make a multiplayer game where one person is in first person and the other is in 3rd? If there is please let me know!

---

<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:** [February 28, 2023, 11:06pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/194 "2023-02-28T23:06:00Z")

</div>

As previously mentioned, you can use @MrFranko 's floor project. Scroll up until you see it.

---

<div class="post-metadata">

**Author:** ![Franklin](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Franklin](https://forum.makecode.com/u/Franklin)\
**Post date:** [February 28, 2023, 11:06pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/195 "2023-02-28T23:06:42Z")

</div>

Awsome.  
Is it posible to make a floor without using a background to make the floor picture?  
Also I looked in the code for the game and I don’t understand how you made the walls higher.

---

<div class="post-metadata">

**Author:** ![Franklin](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Franklin](https://forum.makecode.com/u/Franklin)\
**Post date:** [February 28, 2023, 11:06pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/196 "2023-02-28T23:06:48Z")

</div>

Yes it is posible: [https://arcade.makecode.com/#editor](https://arcade.makecode.com/#editor)

---

<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:** [March 1, 2023, 5:51am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/197 "2023-03-01T05:51:32Z")

</div>

Hi, @Franklin

This link is edit only, every one open thier own projects.  
[https://arcade.makecode.com/#editor](https://arcade.makecode.com/#editor)

To share project to others, you could click share button at right top of your editor, then paste it here.

---

<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:** [March 1, 2023, 5:52am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/198 "2023-03-01T05:52:04Z")

</div>

Could we merge 2 project for ex floor tiles and lanter is it possible to do 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:** [March 1, 2023, 11:23pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/199 "2023-03-01T23:23:30Z")

</div>

Good idea!  
It can be use on multi-layer parallex scrolling, far away layers get more darken. For Arcade pallete has only 16 colors, I can set at most 4 lantern dark levels that feeling reasonable.  
Consoles can run Perspective ground + Lantern well I guess.

---

<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:** [March 1, 2023, 11:24pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/200 "2023-03-01T23:24:43Z")

</div>

That’s nice to hear but would it be able to work with recasting 3d?

---

<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:** [March 2, 2023, 7:30pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/201 "2023-03-02T19:30:01Z")

</div>

Update: I’ve made a test area for a game I’d like to make. Thanks so much to @Brohann for locking the camera so that this could actually work.

> **[Paper Coneguy test area](https://arcade.makecode.com/S81523-66615-36048-72307)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

There are 4 things I need help with in order to make this an actual game.

1: Enemies  
Is it possible to make it so that enemies wander around and attack when they “see” (are in a certain vicinity of) the player, like in the Paper Mario games?

2: Stop Sign attack  
Similar to how you can attack with a hammer in Paper Mario games, I’d like to make it so that you can attack with a stop sign instead.

3: NPCs  
Can you make it so that you can talk to NPCs when approaching them? Here’s an image for more context:  
 ![PM_Fice_T_Screenshot](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e64b2421af114d8a03e5072cf1b3a6a9bb0f0761.webp)

4: Transitions  
Arguably the most important. I need to make it so that you can load a different tilemap when touching a certain block, usually on the edge.

Sorry I’m asking so many questions, I just need to know how I can make this a real game.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [March 2, 2023, 7:30pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/202 "2023-03-02T19:30:51Z")

</div>

@TheConeGuy consider moving this discussion to a new topic in the Help category!

---

<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:** [March 2, 2023, 7:39pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/203 "2023-03-02T19:39:16Z")

</div>

New topic? Alright.

---

<div class="post-metadata">

**Author:** ![ziolkoplays](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ziolkoplays/32/7910_2.png) [@ziolkoplays](https://forum.makecode.com/u/ziolkoplays)\
**Post date:** [March 3, 2023, 10:56pm UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/204 "2023-03-03T22:56:16Z")

</div>

Found a glitch where if you have a second sprite and have it follow you, it will move not in the way its supposed to. Screenshot of my code down below

 ![Screenshot 2023-03-02 8.06.05 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2a0657578188a685e1a86a50eed0ee2a1860496c.png)

---

<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:** [March 5, 2023, 3:58am UTC](https://forum.makecode.com/t/raycasting-3d-render-blocks-edition/12921/205 "2023-03-05T03:58:53Z")

</div>

can you send the link pls? Then maybe I could help.

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

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