pixi-reels
All questions

Symbol classes

How do I add a brand-new symbol type to the game?

Subclass ReelSymbol and implement all five abstract members, onActivate, onDeactivate, resize, playWin, stopAnimation, then register it with r.register(id, MySymbol, opts). resize() runs on every symbol swap, so anything positional belongs there rather than in the constructor.

More in Symbols