# Is there some way to change your field of wiew

**URL:** <https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981>\
**Category:** Help\
**Tags:** game, graphics-and-math\
**Created:** [February 13, 2023, 9:33pm UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981 "2023-02-13T21:33:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 13, 2023, 9:33pm UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/1 "2023-02-13T21:33:08Z")

</div>

I am making a mario game, and I would really like to know if there’s some way to change your field of view without making smaller tiles. The reason for this is that the original super Mario bros game had a lot bigger view and i wouldn’t like to apply this to my game.  
Here’s an example  
This is what I’m seeing

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/483a794e06e1031c8315a9c9fbfba998aa974a8b.jpeg)

And this is what i want to see

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/012c08cd86544ebedc83e47c74b9917369261cd1.jpeg)

---

<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 14, 2023, 12:58am UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/2 "2023-02-14T00:58:11Z")

</div>

@danger_kitty Knows!

---

<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:** [February 14, 2023, 12:58am UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/3 "2023-02-14T00:58:21Z")

</div>

you can maybe use the zoom extension @Kiwiphoenix364 made? idk if it helps though.

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [February 14, 2023, 4:41am UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/4 "2023-02-14T04:41:01Z")

</div>

This is possible, but it is not certain that everything will work right with this active, as some things with the MakeCode engine (probably) have been hardcoded for a 160x120 resolution. Also, this will not work properly on hardware. But here’s the code that you’ll need to use (it’s in js/ts).

```auto
namespace userconfig {
    export const ARCADE_SCREEN_WIDTH = 320
    export const ARCADE_SCREEN_HEIGHT = 240
}

```

Copy this code and change the numbers to change the resolution, the first one controls the width, while the second controls the height (pretty self-explanatory.) Once you’re done with this, you can switch back to blocks if you want (however, if you try to switch between js/ts and blocks in already-made projects, there is a possibility of them breaking/changing variable names, so always be cautious and save before switching to js/ts from blocks.)

> **To change resolution while playing the game"**
>
> As far as I know, you can’t change the resolution at runtime, unless you set the max resolution you want to use then use my zoom extension (kiwiphoenix364/pxt-zoom), which may run slower on higher resolutions, but I did do a patch to account for screen width/height when I figured out how to change Arcade’s resolution.

> **To easily double the resolution"**
>
> If you want to easily double the resolution without going into typescript, you can add my double-res extension (kiwiphoenix364/pxt-double-res), which uses the same code shown earlier. This instantly doubles the resolution from the original 160x120 to 320x240. The original NES’s resolution was 256x240 (for most games), so these are comparable, with the double-res extension being 64 pixels wider. However, be cautious when using this extension, because to revert it back to normal you must go into typescript to take it off, and there are no blocks to control it, because even “on start” blocks run things during runtime, and you can’t set these settings during runtime or in functions.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 14, 2023, 5:56pm UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/5 "2023-02-14T17:56:12Z")

</div>

Thank you @Kiwiphoenix364! This exactly what i needed! It looks so much better. I used your double resolution extension. Thanks for the help  
Here’s how it turned out

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7a29deee64c9387dedbadbf9a9897b4bbe999211.jpeg)

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [February 16, 2023, 6:39pm UTC](https://forum.makecode.com/t/is-there-some-way-to-change-your-field-of-wiew/17981/6 "2023-02-16T18:39:55Z")

</div>

Btw @Kiwiphoenix364 ypo should make this into an extension if possible
