Phaser v3.85.0 Beta 1 #6841
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.
-
Version 3.85.0 - Itsuki - in development
New Features
BaseSoundManager.isPlayingis a new method that will return a boolean if the given sound key is playing. If you don't provide a key, it will return a boolean if any sound is playing (thanks @samme)WebGLRenderer.dispatchContextLostis a new internal method that is called when the WebGL context is lost. By default this is bound to the propertyWebGLRenderer.contextLostHandler. If you override the context loss handler, be sure to invoke this method in due course.WebGLRenderer.dispatchContextRestoreis a new internal method that is called when the WebGL context is restored. By default this is bound to the propertyWebGLRenderer.contextRestoreHandler. If you override the context restore handler, be sure to invoke this method in due course.WebGLRenderer.setContextHandlersis a new internal method with 2 optional parameters:contextLostandcontextRestored. These allow you to overwrite the defaultcontextLostHandlerandcontextRestoreHandlerhandlers. (thanks @yaustar)Phaser.Textures.Frame#setCutPositionis a new internal method with 2 optional parameters:xandy. These sets the x and y position within the source image to cut from.Phaser.Textures.Frame#setCutSizeis a new internal method with 2 parameters:widthandheight. These sets the width, and height of the area in the source image to cut. (thanks @FelipeIzolan)ORIENTATION_CONST.js. The constantsLANDSCAPE_SECONDARYandPORTRAIT_SECONDARYhave been added to thePhaser.Scale.Orientationobject. These constants represent the secondary landscape and portrait orientations respectively. This addition provides more granular control over device orientation handling in Phaser. Fix scaleManager.isPortrait and scaleManager.isLandscape #6837 (thanks @rexrainbow)WebGL Rendering Updates
WebGLTextureWrapper.updateexpanded:sourceparameter is now type?object, so it can be used for anything that is valid in the constructor.formatparameter can update the texture format.Updates
Timeline.pausewill now pause any currently active Tweens that the Timeline had started (thanks @monteiz)Timeline.resumewill now resume any currently paused Tweens that the Timeline had started (thanks @monteiz)Timeline.clearandTimeline.destroywill now destroy any currently active Tweens that the Timeline had created. Previously, active tweens would continue to play to completion (thanks @monteiz)TimelineEventhas a new property calledtweenInstance. If the Timeline event has a tween that has been activated, this will hold a reference to it.requestVideoFramepolyfill has been updated to the latest release, which should resolve some SSR framework issues. Fix requestVideoFrame polyfill is causing a error in Next.js hot-reload #6776 (thanks @lantictac)ScaleManagerlisteners includes checks for thescreen.orientationobject and adds/removes achangeeventListener method to handle screen orientation changes on mobile devices. Theorientationchangeevent is still maintained for backwards compatibility. Fix scaleManager.isPortrait and scaleManager.isLandscape #6837 (thanks @rexrainbow)Bug Fixes
activePointersgame config option is now the correct amount of touch input pointers set. Fix The last touch input pointer is never activated #6783 (thanks @samme)TextureManager.checkKeywill now returnfalseif the key is not a string, which fixes issues where a texture could be created if a key was given that was already in use (thanks Will Macfarlane).imageLoadType) to LoaderConfig, so they now appear in the TypeScript defs.EXPANDscale mode had a bug that prevented it from using the world bounds cameras, cutting rendering short. Fix EXPAND falls back to config width and height when changing scenes #6767 (thanks @Calcue-dev @rexrainbow)getPipelineName()on a Game Object would cause a runtime error if running under Canvas. It now simply returnsnull. FixgetPipelineName()errors with the Canvas renderer #6799 (thanks @samme)setPushable(false)method forcirclebodies prevents the bodies from being pushed. Fix Pushablefalsebodies still move when circle shaped #5617 (thanks @kainage)addDeathZone()on a particle emitter Game Object had a bug where theDeathZoneused world position coordinates.DeathZonenow uses local position coordinates following the particle emitter position. Fix Particle emitter death zones are positioned in global space #6371 (thanks @vforsh)GetLineToLinemethod inGetLineToLine.jsto handle the case wheredx1ordy1values is zero. This ensures the function correctly returnsnullin this case to prevent errors in calculations involving line segments. Fix The result will be NaN, if dx1===0 (GetLineToLine.js) #6579 (thanks @finscn)GetBitmapTextSize.jswhere an extra empty line was added whensetMaxWidthwas called, and the width of the line was less than a word. Previously,yAdvancewas incorrectly incremented bylineHeight + lineSpacingfor each word, leading to an unintended increase in vertical space. The correction now calculatesyAdvancebased on thecurrentLineindex, ensuring that vertical spacing accurately reflects the number of lines. Fix BitmapText setMaxWidth() bug #6807 (thanks @AlvaroNeuronup)Input Bug Fixes
pointer.leftButtonReleasedwill now returntruewhen multiple mouse buttons are being pressed.pointer.rightButtonReleasedwill now returntruewhen multiple mouse buttons are being pressed.pointer.middleButtonReleasedwill now returntruewhen multiple mouse buttons are being pressed.pointer.backButtonReleasedwill now returntruewhen multiple mouse buttons are being pressed.pointer.forwardButtonReleasedwill now returntruewhen multiple mouse buttons are being pressed. Fix pointer.leftButtonReleased() while holding RMB on DRAG_END reports false (wrong), instead of true (correct) value #6027 (thanks @michalfialadev)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:
@lgtome
@samme
@AlbertMontagutCasero
@rexrainbow
Deprecation Warning for the next release
The next release of Phaser will make the following API-breaking changes:
Phaser.Struct.Mapand replacing it with a regular JSMapinstance. This means methods likecontainsandsetAllwill be gone.Phaser.Struct.Setand replacing it with a regular JSSetinstance. This means methods likeiterateLocalwill be gone.Create.GenerateTexture, all of the Create Palettes and thecreatefolder will be removed.phaser-ie9.jsentry-point will be removed along with all associated polyfills.This discussion was created from the release Phaser v3.85.0 Beta 1.
Beta Was this translation helpful? Give feedback.
All reactions