# Resolution change question

**URL:** <https://forum.makecode.com/t/resolution-change-question/24319>\
**Category:** Arcade\
**Tags:** game\
**Created:** [November 16, 2023, 9:27pm UTC](https://forum.makecode.com/t/resolution-change-question/24319 "2023-11-16T21:27:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neintoes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neintoes/32/8315_2.png) [@neintoes](https://forum.makecode.com/u/neintoes)\
**Post date:** [November 16, 2023, 9:27pm UTC](https://forum.makecode.com/t/resolution-change-question/24319/1 "2023-11-16T21:27:59Z")

</div>

Hi all I just wanted to ask about the code shared on the forums for changing MakeCode Arcade’s resolution:

namespace userconfig {  
export const ARCADE\_SCREEN\_WIDTH = 320  
export const ARCADE\_SCREEN\_HEIGHT = 240  
}

This works at startup, but is there a way to make such a change mid-game? (Or are these values overwritten at the start and then used during a launch process which would be a faff to change at runtime) And if anyone could provide some clarity on how/why this code changes the resolution that would be super appreciated! (I did some digging and was unable to find mentions of ‘ARCADE\_SCREEN\_WIDTH + HEIGHT’ in pxt-arcade outside of

‘CFG\_ARCADE\_SCREEN\_WIDTH = 2102  
CFG\_ARCADE\_SCREEN\_HEIGHT = 2103’

---

<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:** [November 16, 2023, 9:55pm UTC](https://forum.makecode.com/t/resolution-change-question/24319/2 "2023-11-16T21:55:48Z")

</div>

No, I remember doing this one time as I was trying a zoom effect but it just gave me an error message

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [November 16, 2023, 10:06pm UTC](https://forum.makecode.com/t/resolution-change-question/24319/3 "2023-11-16T22:06:32Z")

</div>

You can’t change the size at runtime, sorry. It’s a const that’s defined at the start only
