View source
class RatioScaleMode
package flixel.system.scaleModes
extends BaseScaleMode
Available on all platforms
RatioScaleMode is a scaling mode which maintains the game's aspect ratio.
When you shrink or grow the window, the width and height of the game will adjust,
either scaling the game or adding black bars as needed.
This is the default scaling mode used by HaxeFlixel.
Constructor
new(fillScreen:Bool = false)
Parameters:
fillScreen | Whether to cut the excess side to fill the screen or always display everything. |
|---|