I have a laptop 1366x768 resolution. And the default mobile game projext has 640x1136* window size. After press F5 I can resize the window but everytime doing the same thing is quite annoying. What can I do for that. I want my game has the same size but start with a smaller window.
You can use the DefOS extension to resize the window on startup. You can also use the Debug->Simulate Resolution setting in the editor.
3 Likes
Thank you very much
I have to choose it after every debug start.
What this command does is to send a message to the render script.
You can do this yourself manually from e.g. an init() function:
msg.post("@render:", "resize", { width = 320, height = 240 } )
3 Likes
Yeah, thanksss. This is what I want exactly. 480x640 works well on my laptop