To get Haxeflixel to maintain 1:1 pixel rendering at any scale for desktop targets:
In your Project.xml
, add a new window property with an desktop conditional, resizable
set to false, and the desired width
/height
to match the resolution you'd like to maintain.
<window if="desktop" resizable="false" width="320" height="180" />
Apply a shader to the FlxGame instance or the main FlxCamera instance as a filter. The base FlxShader can even just be used if the project doesn't require custom shaders.
FlxG.game.setFilters([new ShaderFilter(new FlxShader())]);