Skip to content

Commit 9163f08

Browse files
committed
Update CHANGELOG.md
1 parent 55516a0 commit 9163f08

1 file changed

Lines changed: 31 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
11
# Change Log
22

3-
## Version 3.20.0 - Fitoria - in dev
3+
## Version 3.20.0 - Fitoria - 11th October 2019
44

55
### Video Game Object
66

7-
* `WebGLRenderer.videoToTexture` is a new method that will create or update a WebGL Texture from the given Video Element.
7+
This is a new Game Object is capable of handling playback of a previously loaded video from the Phaser Video Cache,
8+
or playing a video based on a given URL. Videos can be either local, or streamed:
9+
10+
```javascript
11+
preload () {
12+
this.load.video('pixar', 'nemo.mp4');
13+
}
14+
15+
create () {
16+
this.add.video(400, 300, 'pixar');
17+
}
18+
```
19+
20+
To all intents and purposes, a video is a standard Game Object, just like a Sprite. And as such, you can do
21+
all the usual things to it, such as scaling, rotating, cropping, tinting, making interactive, giving a
22+
physics body, etc.
23+
24+
Transparent videos are also possible via the WebM file format. Providing the video file has was encoded with
25+
an alpha channel, and providing the browser supports WebM playback (not all of them do), then it willl render
26+
in-game with full transparency.
27+
28+
You can also save a video to the Texture Manager, allowing other Game Objects to use it as their texture,
29+
including using it as a sampler2D input for a shader.
30+
31+
See the Video Game Object class for more details. Other Video related changes are as follows:
32+
33+
* `Loader.FileTypes.VideoFile` is a new Video File Loader File Type, used for preloading videos as streams or blobs.
34+
* `WebGLRenderer.createVideoTexture` is a new method that will create a WebGL Texture from the given Video Element.
35+
* `WebGLRenderer.updateVideoTexture` is a new method that will update a WebGL Texture from the given Video Element.
836
* `TextureSource.isVideo` is a new boolean property that is set when the Texture Source is backed by an HTML Video Element.
937
* `Cache.video` is a new global cache that store loaded Video content.
1038
* `Device.Video.h264Video` has been renamed to `Device.Video.h264` to keep it in-line with the Audio Device names.
@@ -103,7 +131,7 @@ In combination these updates fix issues #4732 and #4672. My thanks to @BenjaminD
103131
* `MouseManager.target` can now be defined as either a string or by passing an HTMLElement directly. Fix #4353 (thanks @BigZaphod)
104132
* The `BasePlugin.boot` method has been removed and moved to `ScenePlugin.boot` as it's a Scene-level method only (thanks @samme)
105133
* The `BasePlugin.scene` and `BasePlugin.systems` properties have been removed and are defined in `ScenePlugin`, as they are Scene-level properties only (thanks @samme)
106-
* The `Tween.getValue` method has been removed. It was a legacy function from Phaser 2 and always only returned the first TweenData from the data array, ignoring any subsequent properties or targets, making it redundant. Fix #4717 (thanks @chepe263)
134+
* The `Tween.getValue` method has been updated so you can specify the index of the Tween Data to get the value of. Previously, it only returned the first TweenData from the data array, ignoring any subsequent properties or targets. Fix #4717 (thanks @chepe263)
107135
* `WebGLRenderer.createTexture2D` has a new optional parameter `forceSize`, which will force the gl texture creation to use the dimensions passed to the method, instead of extracting them from the pixels object, if provided.
108136
* The `GameObject.setTexture` method can now accept either a string, in which case it looks for the texture in the Texture Manager, or a Texture instance, in which case that instance is set as the Game Object's texture.
109137
* `TextureManager.get` can now accept either a string-based key, or a Texture instance, as its parameter.
@@ -149,9 +177,6 @@ Thank you to the following people for contributing ideas for new features to be
149177

150178
@njt1982 @TheTrope @allanbreyes @alexandernst @Secretmapper @murteira @oktayacikalin @TadejZupancic @SBCGames @hadikcz @jcyuan @pinkkis @Aedalus @jestarray @BigZaphod @Secretmapper @francois-n-dream @G-Rath
151179

152-
153-
154-
155180
## Version 3.19.0 - Naofumi - 8th August 2019
156181

157182
### Tween Updates

0 commit comments

Comments
 (0)