mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 09:34:02 +00:00
20 lines
553 B
TypeScript
20 lines
553 B
TypeScript
/// <reference path="../../Phaser/Game.ts" />
|
|
/// <reference path="../../Phaser/Sprite.ts" />
|
|
/// <reference path="../../Phaser/Emitter.ts" />
|
|
|
|
(function () {
|
|
|
|
var myGame = new Game(this, 'game', 800, 600, null, create);
|
|
|
|
var emitter: Emitter;
|
|
|
|
function create() {
|
|
|
|
// Creates a basic emitter, bursting out 50 default sprites (i.e. 16x16 white boxes)
|
|
emitter = myGame.createEmitter(myGame.stage.centerX, myGame.stage.centerY);
|
|
emitter.makeParticles(null, 50, 0, false, 0);
|
|
emitter.start(true);
|
|
|
|
}
|
|
|
|
})();
|