mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
25 lines
493 B
TypeScript
25 lines
493 B
TypeScript
/// <reference path="../../Phaser/Game.ts" />
|
|
|
|
(function () {
|
|
|
|
var game = new Phaser.Game(this, 'game', 800, 600, init, create);
|
|
|
|
var emitter: Phaser.Emitter;
|
|
|
|
function init() {
|
|
|
|
game.load.image('jet', 'assets/sprites/jets.png');
|
|
|
|
game.load.start();
|
|
|
|
}
|
|
|
|
function create() {
|
|
|
|
emitter = game.add.emitter(game.stage.centerX, game.stage.centerY);
|
|
emitter.makeParticles('jet', 100, false, 0);
|
|
emitter.start(false, 20, 0.1);
|
|
|
|
}
|
|
|
|
})();
|