Resolution change question

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’

2 Likes

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

2 Likes

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

2 Likes