@vpmedia/phaser 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/index.js +0 -9
- package/src/phaser/display/text.js +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@vpmedia/phaser
|
|
2
2
|
===============
|
|
3
3
|
|
|
4
|
-
[](https://badge.fury.io/js/@vpmedia%2Fphaser)
|
|
5
5
|
[](https://github.com/vpmedia/phaser/actions/workflows/node.js.yml)
|
|
6
6
|
|
|
7
7
|
@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
package/src/index.js
CHANGED
|
@@ -8,14 +8,9 @@ import * as Const from './phaser/core/const';
|
|
|
8
8
|
import Game from './phaser/core/game';
|
|
9
9
|
import Signal from './phaser/core/signal';
|
|
10
10
|
import * as MathUtils from './phaser/util/math';
|
|
11
|
-
// canvas
|
|
12
|
-
import * as CanvasBuffer from './phaser/display/canvas/buffer';
|
|
13
|
-
import * as CanvasPool from './phaser/display/canvas/pool';
|
|
14
|
-
import * as CanvasUtils from './phaser/display/canvas/util';
|
|
15
11
|
// texture
|
|
16
12
|
import BaseTexture from './phaser/display/webgl/base_texture';
|
|
17
13
|
import Texture from './phaser/display/webgl/texture';
|
|
18
|
-
import * as TextureUtils from './phaser/display/webgl/texture_util';
|
|
19
14
|
// geom
|
|
20
15
|
import Circle from './phaser/geom/circle';
|
|
21
16
|
import Ellipse from './phaser/geom/ellipse';
|
|
@@ -38,12 +33,8 @@ export {
|
|
|
38
33
|
Game,
|
|
39
34
|
Signal,
|
|
40
35
|
MathUtils,
|
|
41
|
-
CanvasBuffer,
|
|
42
|
-
CanvasPool,
|
|
43
|
-
CanvasUtils,
|
|
44
36
|
BaseTexture,
|
|
45
37
|
Texture,
|
|
46
|
-
TextureUtils,
|
|
47
38
|
Circle,
|
|
48
39
|
Ellipse,
|
|
49
40
|
Line,
|
|
@@ -697,7 +697,7 @@ export default class extends Image {
|
|
|
697
697
|
|
|
698
698
|
getFontPropertiesContext() {
|
|
699
699
|
if (!window.PhaserRegistry.fontPropertiesContext) {
|
|
700
|
-
window.PhaserRegistry.fontPropertiesContext = this.getFontPropertiesCanvas().getContext('2d');
|
|
700
|
+
window.PhaserRegistry.fontPropertiesContext = this.getFontPropertiesCanvas().getContext('2d', { willReadFrequently: true });
|
|
701
701
|
}
|
|
702
702
|
return window.PhaserRegistry.fontPropertiesContext;
|
|
703
703
|
}
|