# FOV in a game

**URL:** https://forum.makecode.com/t/fov-in-a-game/33527
**Category:** Help
**Tags:** game
**Created:** [February 1, 2025, 12:53am UTC](https://forum.makecode.com/t/fov-in-a-game/33527 "2025-02-01T00:53:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JD10YL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jd10yl/32/19553_2.png) [@JD10YL](https://forum.makecode.com/u/JD10YL)
#### Post date: [February 1, 2025, 12:53am UTC](https://forum.makecode.com/t/fov-in-a-game/33527/1 "2025-02-01T00:53:40Z")

</div>

I was wondering how to add an FOV effect to my game, so that you could only see in an area around you.  
This is the game so far: [https://arcade.makecode.com/S95387-15127-91144-46579](https://arcade.makecode.com/S95387-15127-91144-46579)  
Thank you in advance!

---

<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: [February 2, 2025, 9:20pm UTC](https://forum.makecode.com/t/fov-in-a-game/33527/2 "2025-02-02T21:20:35Z")

</div>

I suggest the [Shadow casting extension](https://forum.makecode.com/t/help-and-questions/1335/83) or the [Lanterns extension!](https://forum.makecode.com/t/lanterns-improving-the-multilights-extension/33190)

---

<div class="post-metadata">

### Author: ![ShaneyBoi09](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shaneyboi09/32/18893_2.png) [@ShaneyBoi09](https://forum.makecode.com/u/ShaneyBoi09)
#### Post date: [February 2, 2025, 9:26pm UTC](https://forum.makecode.com/t/fov-in-a-game/33527/3 "2025-02-02T21:26:20Z")

</div>

First of all, nice game, Second of all, welcome to the forum, third of all, I don’t think raycasting works for gravity/up and down games, but I’m not sure. You should ask @richard about it. He knows all of the nooks and crannies of makecode arcade.

---

<div class="post-metadata">

### Author: ![JD10YL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jd10yl/32/19553_2.png) [@JD10YL](https://forum.makecode.com/u/JD10YL)
#### Post date: [February 3, 2025, 4:38am UTC](https://forum.makecode.com/t/fov-in-a-game/33527/4 "2025-02-03T04:38:35Z")

</div>

Ok! Thanks for the welcoming arms, how should i ask him?

---

<div class="post-metadata">

### Author: ![top\_hat\_lord](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/top_hat_lord/32/33469_2.png) [@top\_hat\_lord](https://forum.makecode.com/u/top_hat_lord)
#### Post date: [February 3, 2025, 5:48pm UTC](https://forum.makecode.com/t/fov-in-a-game/33527/5 "2025-02-03T17:48:01Z")

</div>

okay, three comments from me, a person who loves when they can easily do stuff with the controls. firstly, why is left and right A and B? that seems a little confusing. you could just use the left and right buttons instead. two, why is the button to go up, down? is that a mistake, or is it another confusing game mechanic like the A and B thing? three, if the game is a maze, and you make it have a FOV, you are making the game way to hard. I mean, everyone likes a challenge, but that would be frustrating, and especially if you add something that can kill you. I mean, how do you solve a maze when you can’t see. blocking what you can see is good, but FOV from my understanding makes it so you basically can only see a certain area around you, whether or not it’s behind a wall. I may be incorrect on that, but if I am right with that being the meaning, I suggest you use the shadow casting extension as suggested by Randomuser.

---

<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: [February 3, 2025, 6:18pm UTC](https://forum.makecode.com/t/fov-in-a-game/33527/6 "2025-02-03T18:18:58Z")

</div>

@JD10YL you can just @ me for questions!

but i’d just tell you exactly what @randomuser suggested. let me know if you run into any trouble using those extensions!

---

<div class="post-metadata">

### Author: ![JD10YL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jd10yl/32/19553_2.png) [@JD10YL](https://forum.makecode.com/u/JD10YL)
#### Post date: [February 3, 2025, 10:35pm UTC](https://forum.makecode.com/t/fov-in-a-game/33527/7 "2025-02-03T22:35:10Z")

</div>

Sorry for the buttons mix up, I put in the wrong link. These controls were just me messing with my friends. And I intend for the movement of the game and overall style to completely change before i am finished. Thanks for the recommendations though!
