@nativescript/canvas-phaser 2.0.0-webgpu.2 → 2.0.0-webgpu.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/canvas-phaser",
3
- "version": "2.0.0-webgpu.2",
3
+ "version": "2.0.0-webgpu.20",
4
4
  "description": "Build awesome 2D games with Phaser.js and NativeScript",
5
5
  "main": "index",
6
6
  "typings": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "readmeFilename": "README.md",
34
34
  "bootstrapper": "@nativescript/plugin-seed",
35
35
  "dependencies": {
36
- "@nativescript/canvas-polyfill": "beta",
36
+ "@nativescript/canvas-polyfill": "webgpu",
37
37
  "phaser": "~3.60.0"
38
38
  },
39
39
  "types": "./index.d.ts"
package/phaser.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ import '@nativescript/canvas-polyfill';
1
2
  declare const _default: any;
2
3
  export default _default;
package/phaser.js CHANGED
@@ -1,13 +1,13 @@
1
- require('@nativescript/canvas-polyfill');
1
+ import '@nativescript/canvas-polyfill';
2
2
  function initPhaser() {
3
3
  /* if ((global as any).Phaser) {
4
- const version = parseFloat((global as any).Phaser.VERSION);
5
- if (!Number.isNaN(version) && version < 3) {
6
- (global as any).PIXI = (global as any).window.PIXI = undefined;
7
- (global as any).p2 = (global as any).window.p2 = undefined;
8
- (global as any).window.Phaser = (global as any).Phaser = undefined;
9
- }
10
- }*/
4
+ const version = parseFloat((global as any).Phaser.VERSION);
5
+ if (!Number.isNaN(version) && version < 3) {
6
+ (global as any).PIXI = (global as any).window.PIXI = undefined;
7
+ (global as any).p2 = (global as any).window.p2 = undefined;
8
+ (global as any).window.Phaser = (global as any).Phaser = undefined;
9
+ }
10
+ }*/
11
11
  global.window.Phaser = global.Phaser = global.Phaser || require('phaser');
12
12
  return global.Phaser;
13
13
  }
package/phaser.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"phaser.js","sourceRoot":"","sources":["../../../packages/canvas-phaser/phaser.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAEzC,SAAS,UAAU;IACnB;;;;;;;SAOK;IACF,MAAc,CAAC,MAAM,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrG,OAAQ,MAAc,CAAC,MAAM,CAAC;AAChC,CAAC;AAED,eAAe,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"phaser.js","sourceRoot":"","sources":["../../../packages/canvas-phaser/phaser.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,SAAS,UAAU;IAClB;;;;;;;KAOI;IACH,MAAc,CAAC,MAAM,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,GAAI,MAAc,CAAC,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrG,OAAQ,MAAc,CAAC,MAAM,CAAC;AAC/B,CAAC;AAED,eAAe,UAAU,EAAE,CAAC"}