51 lines
2.4 KiB
Markdown
51 lines
2.4 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Set Up Reel Slot
|
|
---
|
|
|
|
### Prepare Assets
|
|
|
|
Add the symbol textures and reel frame:
|
|
|
|
|||
|
|
|------------------------------------------------------------------|--------------------------------------------------------------|
|
|
|
|
### Add symbols to `SpriteFrameProvider`
|
|
|
|
This allows symbols to be accessed globally from code:
|
|
|
|

|
|
|
|
### Add Reel Frame
|
|
|
|
| | |
|
|
|--------------------------------------------------------------------|--------------------------------------------------------------|
|
|
|
|
### Configure the Reel Slot
|
|
|
|
Use `reel-scroller-helper` to configure spinning behavior:
|
|
|
|

|
|
|
|
| Properties | Description | Example |
|
|
|------------|--------------|---------|
|
|
|**Cell Item Script Name**|The name of the script will be attached to each cell item.||
|
|
| **Scroller Script Name** | the name of the script for handling the spinning logic.||
|
|
|**Row Count x Reel Count**| the number of Slot Item each row and column in the reel slot panel.||
|
|
|**Cell Size**| the size of each cells.||
|
|
|**Cell Spacing**| the distance between each cells horizontally and vertically.||
|
|
|**Cell Dim Color**| set the dark color for the non-win cells when showing winning animation for each line.||
|
|
|**Top Count and Bot Count**| for spinning logic to work, a certain number of cell will be added to the top and bottom of the reel.||
|
|
|
|
### Generate Reel Panel
|
|
|
|
Use `reel-scroller-helper` to auto-generate the full panel:
|
|
|
|

|
|
|
|
:::tip
|
|
A popup may be covering the scene. Disable it temporarily to clearly view and edit the reel slot components.
|
|
:::
|