mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
adding back lost files again
This commit is contained in:
parent
5a1e721c02
commit
eaf72f7a80
4 changed files with 42 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -14,7 +14,7 @@ node_modules/
|
|||
/npm-debug.log
|
||||
build/
|
||||
out/
|
||||
scripts/tsgen/test/bin/
|
||||
scripts/tsgen/test/output.txt
|
||||
#scripts/tsgen/test/bin/
|
||||
#scripts/tsgen/test/output.txt
|
||||
|
||||
plugins/spine/spine-runtimes/
|
39
scripts/tsgen/test/bin/game.js
Normal file
39
scripts/tsgen/test/bin/game.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var MyScene = /** @class */ (function (_super) {
|
||||
__extends(MyScene, _super);
|
||||
function MyScene() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
MyScene.prototype.preload = function () {
|
||||
this.load.atlas('cards', 'assets/atlas/cards.png', 'assets/atlas/cards.json');
|
||||
};
|
||||
MyScene.prototype.create = function () {
|
||||
var sprite = this.add.sprite(400, 300, 'cards', 'clubs3');
|
||||
sprite.setInteractive();
|
||||
this.input.on('pointerdown', function () {
|
||||
sprite.setFrame('hearts4');
|
||||
});
|
||||
};
|
||||
return MyScene;
|
||||
}(Phaser.Scene));
|
||||
var config = {
|
||||
type: Phaser.AUTO,
|
||||
parent: 'phaser-example',
|
||||
width: 800,
|
||||
height: 600,
|
||||
scene: MyScene
|
||||
};
|
||||
var game = new Phaser.Game(config);
|
||||
//# sourceMappingURL=game.js.map
|
1
scripts/tsgen/test/bin/game.js.map
Normal file
1
scripts/tsgen/test/bin/game.js.map
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"game.js","sourceRoot":"","sources":["../src/game.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAsB,2BAAY;IAAlC;;IAoBA,CAAC;IAlBU,yBAAO,GAAd;QAEI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,CAAC,CAAC;IAClF,CAAC;IAEM,wBAAM,GAAb;QAEI,IAAI,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE1D,MAAM,CAAC,cAAc,EAAE,CAAC;QAExB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,EAAE;YAEzB,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE/B,CAAC,CAAC,CAAC;IACP,CAAC;IAEL,cAAC;AAAD,CAAC,AApBD,CAAsB,MAAM,CAAC,KAAK,GAoBjC;AAED,IAAI,MAAM,GAAG;IACT,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
0
scripts/tsgen/test/output.txt
Normal file
0
scripts/tsgen/test/output.txt
Normal file
Loading…
Reference in a new issue