# How do you change you screen resolution?

**URL:** <https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870>\
**Category:** Help\
**Tags:** game\
**Created:** [March 24, 2025, 9:50pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870 "2025-03-24T21:50:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oasis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/oasis/32/20776_2.png) [@oasis](https://forum.makecode.com/u/oasis)\
**Post date:** [March 24, 2025, 9:50pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/1 "2025-03-24T21:50:11Z")

</div>

How do you change how big the camera is?  
this command  
{  
export const ARCADE\_SCREEN\_WIDTH = 320  
export const ARCADE\_SCREEN\_HEIGHT = 240  
}  
dosent work for me anymore. it used to, but now old games where i used it crash and new games say it is a error

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [March 24, 2025, 10:50pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/2 "2025-03-24T22:50:02Z")

</div>

you forgot to include `namespace userconfig`!  
here is the working code:

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

```

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [March 25, 2025, 6:22am UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/3 "2025-03-25T06:22:32Z")

</div>

also remember that this will mess up on certain handhelds

---

<div class="post-metadata">

**Author:** ![Necroovermind](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@Necroovermind](https://forum.makecode.com/u/Necroovermind)\
**Post date:** [March 25, 2025, 5:44pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/4 "2025-03-25T17:44:11Z")

</div>

how do you do it on blocks?

---

<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:** [March 25, 2025, 10:26pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/5 "2025-03-25T22:26:21Z")

</div>

Not possible. You will have to paste this code into javascript and change the values to change the screen size

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [March 25, 2025, 10:26pm UTC](https://forum.makecode.com/t/how-do-you-change-you-screen-resolution/34870/6 "2025-03-25T22:26:45Z")

</div>

in javascript then switch to blocks.  
BUT  
with the new copying blocks features, you can boot up a random project, convert to javascript then back to blocks to get the grey block code, then copy that and paste into your desired project
