crystal.window.set_native_height

Sets the game’s native-height (in pixels) from which it can be upscaled. This is the height of your game viewport when drawn at zoom 1x.

Note that there is no set_native_width function. The viewport width is determined according to the window aspect ratio and the aspect ratio limits.

The default native height is 600 pixels.

Usage

crystal.window.set_native_height(height)

Arguments

Name Type Description
height number Native height in pixels.

Examples

crystal.window.set_native_height(480);

This site uses Just the Docs, a documentation theme for Jekyll.