How do you change you screen resolution?

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

4 Likes

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

namespace userconfig {
export const ARCADE_SCREEN_WIDTH = 320
export const ARCADE_SCREEN_HEIGHT = 240
}
5 Likes

also remember that this will mess up on certain handhelds

how do you do it on blocks?

2 Likes

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

2 Likes

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

3 Likes