Phaser v4.0.0 Release Candidate 3 #7141
photonstorm
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release candidate introduces better pixel art controls, and fixes performance issues related to pixel art options.
Updates since RC2:
New Features
GameObject#vertexRoundMode
added to control vertex pixel rounding on a per-object basis."off"
: Never round vertex positions."safe"
: Round vertex positions if the object is "safe": it is rendering with a transform matrix which only affects the position, not other properties such as scale or rotation."safeAuto"
(default): Like "safe", but only if rendering through a camera whereroundPixels
is enabled."full"
: Always round vertex positions. This can cause sprites to wobble if their vertices are not safely aligned with the pixel resolution, e.g. during rotations. This is good for a touch of PlayStation 1 style jank."fullAuto"
: Like "full", but only if rendering through a camera whereroundPixels
is enabled.GameObject#willRoundVertices(camera, onlyTranslated)
returns whether vertices should be rounded. In the unlikely event that you need to control vertex rounding even more precisely, you are intended to override this method.Blocky
filter added. This is similar to Pixelate, but it picks just a single color from the image, preserving the palette of pixel art. You can also configure the pixel width and height, and offset. This is a good option for pixelating a retro game at high resolution, setting up for additional filters such as CRT emulation.Changes
Fixes
WebGLSnapshot
and snapshot functions based on it now return the correct pixel, instead of the one above it (or nothing if they're at the top of the image).ArcadePhysics#closest()
and#furthest()
are properly defined (thanks @samme).GamepadPlugin.stopListeners
andGamepadPlugin.disconnectAll
now have guards around them so they won't try to invoke functions on potentially undefined gamepads (thanks @cryonautlex)useTree
is false #7112 (thanks @samme)Documentation / TypeScript Enhancements
Thanks to the following people:
@ospira
@samme
@OuttaBounds
@raaaahman
This discussion was created from the release Phaser v4.0.0 Release Candidate 3.
Beta Was this translation helpful? Give feedback.
All reactions