# Set arcade screen height to variable

**URL:** <https://forum.makecode.com/t/set-arcade-screen-height-to-variable/34688>\
**Category:** Help\
**Created:** [March 18, 2025, 12:02pm UTC](https://forum.makecode.com/t/set-arcade-screen-height-to-variable/34688 "2025-03-18T12:02:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 18, 2025, 4:49pm UTC](https://forum.makecode.com/t/set-arcade-screen-height-to-variable/34688/3 "2025-03-18T16:49:52Z")

</div>

It is possible to change the screen size, but not while your program is running. Only once.  
This topic outlines how to do it:

> [@How did i just now discover this!](https://forum.makecode.com/t/how-did-i-just-now-discover-this/28961):
>
> If you type namespace userconfig { export const ARCADE\_SCREEN\_WIDTH = 320 export const ARCADE\_SCREEN\_HEIGHT = 240 } Into the java script editor, you just changed the screen size. You can input ANY SIZE! Why does nobody use this! I can make a game in 4k! (with low FPS but thats besides the point) There has been MANY times where I wished this was possible and now I find it IS?!??!?! Anyways I just wanted to share this so no one suffers as I did.

It only works in JavaScript, not blocks, so I would make a copy of your project before going into JaveScript and trying this.

---

_[View the full topic](https://forum.makecode.com/t/set-arcade-screen-height-to-variable/34688)._
