Display resolution

The 2D scene coordinates and objects size are expressed in pixels with the origin (0,0) located in the top-left corner of the screen and the positive X axis going to the right and the positive Y axis going to the bottom.

In order to remain resolution-independent, the virtual screen size is freely configured by the user using the UISetInternalResolution(width, height) script function. This virtual screen lets you 'force' a resolution in pixels for all your sprites and window placement regardless of the actual screen resolution.

Note: The default virtual screen size is set to 1280x960 pixels.

The engine will then fit the virtual screen inside the physical screen and preserve its aspect ratio. It is safe performance-wise to change the virtual screen size every frame in order to force a 1:1 pixel density (so that the UI resolution matches the screen resolution).