Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Created October 19, 2014 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekelokorpi/092a83c41cfaa5ca4851 to your computer and use it in GitHub Desktop.
Save ekelokorpi/092a83c41cfaa5ca4851 to your computer and use it in GitHub Desktop.
Particle: Bitmap text
var text = new game.BitmapText('HELLO', { font: 'MyFont' });
text.cacheAsBitmap = true;
var emitter = new game.Emitter();
// Use cached sprite from BitmapText as particle texture
emitter.textures.push(text._cachedSprite.texture);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment