@vpmedia/phaser 1.5.0 → 1.7.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/phaser/display/bitmap_text.js +2 -2
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.7.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",
|
|
@@ -260,11 +260,11 @@ export default class extends DisplayObject {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
get fill() {
|
|
263
|
-
return this.tint;
|
|
263
|
+
return typeof this.tint === 'number' ? `#${this.tint.toString(16).toUpperCase()}` : this.tint;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
set fill(value) {
|
|
267
|
-
this.tint = value;
|
|
267
|
+
this.tint = typeof value === 'string' ? parseInt(value.replace('#', ''), 16) : value;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
get font() {
|