Phaser v4.0.0 Release Candidate 6 #7228
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.
-
New Features
Texture#setWrap()provides easy access to texture wrap mode in WebGL, which would otherwise be very technical to alter onWebGLTextureWrapperobjects. This is probably of most use to shader authors. Thanks @Legend-Master for raising an issue where power-of-two sprites had unexpected wrapping artifacts.Phaser.Textures.WrapMode.CLAMP_TO_EDGEis always available.Phaser.Textures.WrapMode.REPEATwill only be applied to textures with width and height equal to powers of 2.Phaser.Textures.WrapMode.MIRRORED_REPEATlikewise requires powers of 2.sortByYparameter to the TilemapcreateFromObjectsmethod (thanks @saintflow47)Clarifications
Tilemap.createLayer()withgpuflag enabled only works with orthographic layers, not hexagonal or isometric. Thanks @amirking59!Updates
Buttonclass now has a new optionalisPressedboolean parameter which theGamepadclass uses to resolve this, initializing the current pressed state of the Button (thanks @cryonautlex)Fixes
Blendfilter parametertexturenow correctly documented asstring.ColorMatrixfilter correctly blends input alpha.ColorMatrix.desaturateis no longer documented assaturation.Containernow updates the blend mode it passes to children more accurately, preventing blend modes from leaking from one child into another child's filters. Thanks @leemanhopeter!Filtersnow correctly handles non-central object origins when the object is flipped. Thanks @ChrisCPI!Glowfilter acts consistently whenknockoutis active.Gridshape now sets stroke correctly from optional initialization parameters, at 1px wide. (UseGrid#setStrokeStyle()to customize it further.) Thanks @Grimshad!Maskfilter now correctly resizes and clears when the game resizes to an odd width or height, fixing a bug where masks might overdraw themselves over time. Thanks @leemanhopeter!ParallelFiltersfilter memory leak eliminated (this would occur when both passes had active filters).TilemapGPULayernow respects camera translation. Thanks @aroman!TweenBuilderwhen the targets array contains null or undefined elements (thanks @aomsir)GetURLfunction did not treatfile://URLs as absolute. When a baseURL is set, it gets prepended to an already-absolute path, producing double-prefixed URLs (thanks @aomsir)Timelineevents withonceset totruewould silently break the timeline and prevent all future events from firing. Fix Timeline Events set to once break timeline #7147 (thanks @TomorrowToday)Examples, Documentation, Beta Testing and TypeScript
Thanks to the following for helping with the Phaser Examples, Beta Testing, Docs, and TypeScript definitions, either by reporting errors, fixing them, or helping author the docs:
@chavaenc
@Urantij
@justin-calleja
@DayKev
@samme
@ospira
This discussion was created from the release Phaser v4.0.0 Release Candidate 6.
Beta Was this translation helpful? Give feedback.
All reactions