FixedScaleMode is a scaling mode which maintains the game's scene at a fixed size. This will clip off the edges of the scene for dimensions which are too small, and leave black margins on the sides for dimensions which are too large.

To enable it in your project, use FlxG.scaleMode = new FixedScaleMode();.

Constructor

new()

Inherited Variables

Defined by BaseScaleMode

@:value(CENTER)horizontalAlign:FlxHorizontalAlign = CENTER

read onlyoffset:FlxPoint

read onlyscale:FlxPoint

@:value(CENTER)verticalAlign:FlxVerticalAlign = CENTER

Inherited Methods

Defined by BaseScaleMode

onMeasure(Width:Int, Height:Int):Void