How to go full screen and/or control window size from a script? (DEF-2082)

Hello! I’m trying to figure out how to do two things from within a Lua script:

  1. Activate full screen mode. I want to add a key that toggles between full screen and windowed mode.

  2. Control window size. I would like to set the window size at startup time, and the display->width/height options in project settings have the unfortunate side effect of changing the viewport size as well.

Hi, there’s currently no way to control these things through script. Regarding your second point, that is how the default render-script behaves, but you can change that behavior if you want. Check out http://www.defold.com/doc/rendering and http://www.defold.com/ref/render