Phaser v4.0.0 Release Candidate 5 #7190
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
Mask
filter now supportsscaleFactor
parameter, allowing the creation of scaled-down framebuffers. This can save memory in large games, but you must manage scaling logic yourself. Thanks to kimdanielarthur-cowlabs for developing the initial solution.Camera
has the new propertyisObjectInversion
, used internally to support special transforms for filters.Shader
has the new methodrenderImmediate
, which makes it straightforward to userenderToTexture
when the object is not part of a display list, or otherwise needs updating outside the regular render loop.Improvements
Fixes
PhysicsGroup.add
andStaticPhysicsGroup.add
will now check to see if the incoming child already has a body of the wrong type, and if so, will destroy it so the new correct type can be assigned.Blocky
filter now has a minimum size of 1, which prevents the object from disappearing.TilemapGPULayer
now takes the first tileset if it receives an array of tilesets (which is valid for Tilemaps but not for TilemapGPULayer). Thanks to ChrisCPI for the fix.DynamicTexture
methodstartCapture
now handles nested parent transforms correctly. This is used inMask
, so masks withinContainer
objects should behave correctly too.Container
/Layer
objects are correctly added to the current camera'srenderList
. This fixes an issue with input on overlapping interactive objects.This discussion was created from the release Phaser v4.0.0 Release Candidate 5.
Beta Was this translation helpful? Give feedback.
All reactions