![]() tQuad no longer uses an anonymous function for roundPixels, which will help with performance. ![]() This is all now handled in the shader directly. ![]() It also won't apply it to any of the sprite values. The MultiPipeline.batchSprite method (which is also used by the Single Pipeline and Mobile Pipeline) will no longer use roundPixels when calculating the quad vertex data.Camera.preRender will no longer round the origin, follow coordinates or scrollX/Y coordinates.CanvasRenderer.batchSprite has been updated to correctly use the Camera roundPixels property and apply it to the drawImage call.This means that all pixel rounding calculations are now done on the GPU instead of the CPU, which can save a lot of math in intensive games. All of the core vertex shaders, including Multi, Single and Mobile now have a new uniform called uRoundPixels which is set in all of the corresponding pipelines.So if you're creating a pixel-art style game, please still enable this in your config. Note that only roundPixels has been set to true. ![]() If you wish to disable this, you can do so by setting the roundPixels property in the Game Config to false. This will prevent sub-pixelation when rendering at non-integer offsets and allows for smoother camera scrolling, especially at higher zoom scales. This means that all Game Objects will be positioned and rendered with pixel-perfect precision, which is by far the most common use-case for Phaser games. The Game Config roundPixels property is now true by default.This feature has now been enabled by default. What's New in 3.70.0? Version 3.70.0 - Yotsuba - 10th November 2023 New Features - Round PixelsĪll pixel rounding math is now handled on the GPU instead of on the CPU. If you're just doing a quick test then it's safe to grab the js files, however it's always worth having the source code to hand for reference. ![]() The zip and tar links download an archive of the repository. The "js" and "min.js" links download pre-built versions of Phaser with all modules enabled. Which file should I download?įamiliar with git? Use the "clone" link to get the whole repo. The latest CE release is 2.19.1 released on 13th October 2021. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |