ang2-phaser
Advanced tools
Comparing version 1.1.1 to 1.1.3
@@ -27,3 +27,3 @@ //-------------- | ||
// load images/sounds/scripts | ||
game.load.image('phaser_logo', '../../../node_modules/ang2-phaser/game_demo/phaser_logo.png') | ||
game.load.image('phaser_logo', '../../../node_modules/ang2-phaser/game_demos/phaser_logo.png') | ||
@@ -30,0 +30,0 @@ // preloader events |
@@ -27,3 +27,3 @@ //-------------- | ||
// load images/sounds/scripts | ||
game.load.image('phaser_logo', '../../../node_modules/ang2-phaser/game_demo/phaser_logo.png') | ||
game.load.image('phaser_logo', '../../../node_modules/ang2-phaser/game_demos/phaser_logo.png') | ||
@@ -30,0 +30,0 @@ // preloader events |
@@ -88,6 +88,5 @@ "use strict"; | ||
}), | ||
__metadata('design:paramtypes', [(typeof (_a = typeof core_1.ElementRef !== 'undefined' && core_1.ElementRef) === 'function' && _a) || Object]) | ||
__metadata('design:paramtypes', [core_1.ElementRef]) | ||
], ng2PhaserComponent); | ||
return ng2PhaserComponent; | ||
var _a; | ||
}()); | ||
@@ -94,0 +93,0 @@ exports.ng2PhaserComponent = ng2PhaserComponent; |
{ | ||
"name": "ang2-phaser", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "A Phaser module built for Angular 2 components.", | ||
@@ -27,6 +27,3 @@ "main": "index.js", | ||
"homepage": "https://github.com/allenRoyston/ang2-phaser#readme", | ||
"dependencies": { | ||
"phaser": "^2.6.1" | ||
}, | ||
"devDependencies": {} | ||
"dependencies": {} | ||
} |
@@ -9,3 +9,4 @@ # ang2-phaser | ||
``` | ||
npm install phaser | ||
npm install phaser --save | ||
npm install ang2-phaser --save | ||
``` | ||
@@ -32,2 +33,3 @@ <br> | ||
Then include the module in your scripts (including the functions and declarations).<br> | ||
*Note that you do not have to include the main Phaser file; the directive will do it for you. | ||
``` | ||
@@ -47,3 +49,3 @@ | ||
<h1>Angular2 - Phaser Demo</h1> | ||
<phaser (phaser)="phaserLink1($event)" [settings]="{file:'node_modules/phaser/build/phaser.min.js'}"></phaser> | ||
<phaser (phaser)="phaserLink1($event)" ></phaser> | ||
</center> | ||
@@ -60,3 +62,3 @@ ` | ||
js.type = "text/javascript"; | ||
js.src = '../../../node_modules/ang2-phaser/game/phaser1_demo.js'; | ||
js.src = '../../../node_modules/ang2-phaser/game_demos/phaser1_demo.js'; | ||
document.body.appendChild(js); | ||
@@ -188,4 +190,14 @@ js.onload = function(){ | ||
### Parameters | ||
``` | ||
// if you want to use an alternate version of Phaser (instead of the most up to date version, which is 2.6.1, then you | ||
// can just just pass the file location in the setting -> file | ||
// EXAMPLE: | ||
<phaser (phaser)="phaserLink1($event)" [settings]="{file:'node_modules/phaser/build/phaser.min.js'}"></phaser> | ||
``` | ||
### Version | ||
1.0.0 | ||
1.0.1 | ||
@@ -199,6 +211,2 @@ | ||
### NPM / Bower | ||
``` | ||
npm install ang2-phaser --save | ||
``` | ||
@@ -205,0 +213,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6207246
0
17
90731
214
0
3
4
- Removedphaser@^2.6.1
- Removedphaser@2.6.2(transitive)