Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Created Oct 19, 2014
Embed
What would you like to do?
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