way to disable blurring on canvas / nearest neighbour rendering (html5 export)

  • Hello!

    I tried the basic hello world example and it's all blurry for me on Safari.
    0_1535642981711_Bildschirmfoto 2018-08-30 um 17.28.21.png

    Something like https://github.com/openfl/openfl/issues/884 is the normal solution, but not sure what an idiomatic way to do it in haxeflixel would be. Any advice would be appreciated :)

  • this is not tested on html5 but tends to remove image artifacts by scaling the resolution slightly. perhaps it also fixes blurriness. FlxG.scaleMode = new RelativeScaleMode(0.99, 0.99);. this might also work. FlxG.camera.pixelPerfectRender = true;.

Log in to reply

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.