68 lines
2.5 KiB
Markdown
68 lines
2.5 KiB
Markdown
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
# Win Point On Reel
|
|
|
|
## Overview
|
|
|
|
- Displays win points for each payline, including scatter wins.
|
|
- Shows the win points as the last item on each line.
|
|
|
|

|
|
|
|
## Implementation
|
|
|
|
### Core Prefabs
|
|
|
|
| Path | Example |
|
|
|------|---------|
|
|
| `assets\core-assets\hyper-core\packages\on-reel-present-win-point\prefab` |  |
|
|
|
|
### Setup Steps
|
|
|
|
#### Steps 1.
|
|
|
|
- Add the win point on reel prefab to your main scene.
|
|
|
|
| Component | Description |
|
|
|----------------------------------|-----------------------------------------------------|
|
|
| `on-reel-present-win-point` | Component to **show/hide** points on reels |
|
|
| `hyper-present-win-point` | Manages win point presentation flow |
|
|
|
|

|
|
|
|
#### Steps 2.
|
|
- Manages the display and animation of win point labels at specific reel positions in the slot game.
|
|
|
|

|
|
|
|
| Property | Type | Description |
|
|
|--------------------|-----------|---------------------------------------------|
|
|
| `labelPosition` | `cc.Vec2` | Offset position for the win point label |
|
|
| `nodeTarget` | `cc.Node` | Target node containing the label |
|
|
| `cellItemSize` | `cc.Vec2` | Size of each slot cell |
|
|
| `defaultFontSize` | `number` | Default font size for the label |
|
|
|
|
#### Steps 3
|
|
|
|
- Set Up Label
|
|
|
|

|
|
|
|
- Add `label-point`:
|
|
- **Display:** Shows win points on reels.
|
|
- **Formatting:** Supports number and currency formats for localization.
|
|
|
|
- Add Font:
|
|
- Add a custom font asset to the win point component.
|
|
|
|
| path | example |
|
|
|---------------------------|---------------------------------------------------------------|
|
|
|path: `assets\game-assets\fonts\preloads\main-game\fnt-win-point-on-reel`||
|
|
|
|
|
|
|
|
## Game Result Examples
|
|
|
|
| |