Skip to content

Instantly share code, notes, and snippets.

View apostroll's full-sized avatar

Apostroll Hardtrollias apostroll

View GitHub Profile
// Demo at http://codepen.io/anon/pen/gbXoXm
var game = new Phaser.Game(800, 600, Phaser.AUTO);
game.state.add('main', {create: create});
game.state.start('main', true, false);
var emitter;
function create() {
var pSize = game.world.width / 12.5;
var bmpd = game.add.bitmapData(pSize, pSize);