splitSymbol() places the cells of a split. The animation in these demos is each demo’s own code. The first demo compares the two height modes, the second lets you split cells yourself, and the third splits on MultiWays.
Grow or keep#
Both boards land the same result and split the same cells, one copy at a time. On the left the reel grows. On the right the reel keeps its height and its cells shrink. The titles show each reel’s cell count and height, read from the engine.
Under 'keep' every symbol on the reel is resized, so its art has to draw at any cell height, as MultiWays art already does. These boards anchor their reels at the top with reelAnchor('start'), so a reel grows downward. With the default 'center' a reel grows in both directions and the board re-centres.
Loading recipe…
Tap a cell to split it#
Tap any cell to split it in two, and the readout prints the call the tap made. Choose grow or keep above the board. Spin to start over, which calls resetColumns() first.
Loading recipe…
Splits on MultiWays#
On MultiWays a reel’s height is fixed, so a split makes room inside the reel and the ways go up with the cell count. The server names the winning symbol and which of its cells split, into two or three copies each. WinLines draws the ways after every split.
The cell count stays within the set’s [minCells, maxCells], as it would after a setShape(). Raise multiways({ maxCells }) to allow more splits. The next spin’s setShape() reshapes every reel from the cell count its split left it with.
Loading recipe…
Stacked symbols on infinity reels#
The infinity reels page has a demo where a stack two to four cells tall splits into more single symbols than it had cells. Its reel grows past the frame in both directions while expand() adds reels.
A reel that a block wider than one reel covers cannot change on its own, or the block’s reels would no longer line up, so splitSymbol() and setColumn() throw there. Every demo on this page splits a symbol one reel wide.