mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 07:04:31 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
d16d8dc9ce
commit
25e6868d2d
1 changed files with 3681 additions and 3666 deletions
25
CHANGELOG.md
25
CHANGELOG.md
|
@ -1,6 +1,6 @@
|
|||
# Change Log
|
||||
|
||||
## Version 3.25.0 - Subaru - in development
|
||||
## Version 3.50.0 - Subaru - in development
|
||||
|
||||
### WebGL Multi-Texture Rendering
|
||||
|
||||
|
@ -111,6 +111,24 @@ If you used any of them in your code, please update to the new function names be
|
|||
* `projOrtho` is now available as a stand-alone function `Phaser.Renderer.WebGL.MVP.ProjectOrtho`
|
||||
* `Phaser.Renderer.WebGL.MVP.SetIdentity` is a new function the others use, to save on space.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### BitmapText New Features, Updates and API Changes
|
||||
|
||||
* `BitmapTextWebGLRenderer` has been rewritten from scratch to make use of the new pre-cached WebGL uv texture and character location data generated by `GetBitmapTextSize`. This has reduced the number of calculations made in the function dramatically, as it no longer has work out glyph advancing or offsets during render, but only when the text content updates.
|
||||
* `BitmapText.getCharacterAt` is a new method that will return the character data from the BitmapText at the given `x` and `y` corodinates. The character data includes the code, position, dimensions and glyph information.
|
||||
* The `BitmapTextSize` object returned by `BitmapText.getTextBounds` has a new property called `characters` which is an array that contains the scaled position coordinates of each character in the BitmapText, which you could use for tasks such as determining which character in the BitmapText was clicked.
|
||||
* `ParseXMLBitmapFont` will now calculate the WebGL uv data for the glyphs during parsing. This avoids it having to be done during rendering, saving CPU cycles on an operation that never changes.
|
||||
* `BitmapTextWord`, `BitmapTextCharacter` and `BitmapTextLines` are three new type defs that are now part of the `BitmapTextSize` config object, as returned by `getTextBounds`. This improves the TypeScript defs and JS Docs for this object.
|
||||
* The signature of the `ParseXMLBitmapFont` function has changed. The `frame` parameter is no longer optional, and is now the second parameter in the list, instead of being the 4th. If you call this function directly, please update your code.
|
||||
* The `BitmapText.getTextBounds` method was being called every frame, even if the bounds didn't change, potentially costing a lot of CPU time depending on the text length and quantity of them. It now only updates the bounds if they change.
|
||||
* The `GetBitmapTextSize` function used `Math.round` on the values, if the `round` parameter was `true`, which didn't create integers. It now uses `Math.ceil` instead to give integer results.
|
||||
* The `GetBitmapTextSize` function has a new boolean parameter `updateOrigin`, which will adjust the origin of the parent BitmapText if set, based on the new bounds calculations.
|
||||
|
||||
### New Features
|
||||
|
||||
* `WebGLRenderer.setInt1iv` will allow you to look-up and set a 1iv uniform on the given shader.
|
||||
|
@ -119,7 +137,7 @@ If you used any of them in your code, please update to the new function names be
|
|||
* `Geom.Polygon.Translate` is a new function that allows you to translate all the points of a polygon by the given values.
|
||||
* `Phaser.Types.Math.Vector3Like` is a new data type representing as Vector 3 like object.
|
||||
* `Phaser.Types.Math.Vector4Like` is a new data type representing as Vector 4 like object.
|
||||
* The `BitmapTextSize` object returned by `BitmapText.getTextBounds` has a new property called `characters` which is an array that contains the scaled position coordinates of each character in the BitmapText, which you could use for tasks such as determining which character of the object was clicked.
|
||||
* `Transform.getLocalPoint` is a new method, available on all Game Objects, that takes an `x` / `y` pair and translates them into the local space of the Game Object, factoring in parent transforms and display origins.
|
||||
|
||||
### Updates and API Changes
|
||||
|
||||
|
@ -129,14 +147,11 @@ If you used any of them in your code, please update to the new function names be
|
|||
* `StaticTilemapLayer` now includes the `ModelViewProjection` mixin, so it doesn't need to modify the pipeline during rendering.
|
||||
* `WebGLRenderer.textureFlush` is a new property that keeps track of the total texture flushes per frame.
|
||||
* The `TextureTintStripPipeline` now extends `TextureTintPipeline` and just changes the topolgy, vastly reducing the filesize.
|
||||
* `BitmapTextWord`, `BitmapTextCharacter` and `BitmapTextLines` are three new type defs that are now part of the `BitmapTextSize` config object, as returned by `getTextBounds`. This improves the TypeScript defs and JS Docs for this object.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* `RenderTexture.resize` (which is called from `setSize`) wouldn't correctly set the `TextureSource.glTexture` property, leading to `bindTexture: attempt to use a deleted object` errors under WebGL.
|
||||
* The `MatterAttractors` plugin, which enables attractors between bodies, has been fixed. The original plugin only worked if the body with the attractor was _first_ in the world bodies list. It can now attract any body, no matter where in the world list it is. Fix #5160 (thanks @strahius)
|
||||
* The `BitmapText.getTextBounds` method was being called every frame, even if the bounds didn't change, potentially costing a lot of CPU time depending on the text length and quantity of them. It now only updates the bounds if they change.
|
||||
* The `GetBitmapTextSize` function used `Math.round` on the values, if the `round` parameter was `true`, which didn't create integers. It now uses `Math.ceil` instead to give integer results.
|
||||
|
||||
### Examples, Documentation and TypeScript
|
||||
|
||||
|
|
Loading…
Reference in a new issue