mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
16 lines
448 B
JavaScript
16 lines
448 B
JavaScript
/// <reference path="../../Phaser/Game.ts" />
|
|
(function () {
|
|
var game = new Phaser.Game(this, 'game', 800, 600, preload, create);
|
|
|
|
var emitter;
|
|
|
|
function preload() {
|
|
game.load.image('jet', 'assets/sprites/jets.png');
|
|
}
|
|
|
|
function create() {
|
|
emitter = game.add.emitter(game.stage.centerX, game.stage.centerY);
|
|
emitter.makeParticles('jet', 100, false, 0);
|
|
emitter.start(false, 20, 0.1);
|
|
}
|
|
})();
|