47 lines
1.9 KiB
Markdown
47 lines
1.9 KiB
Markdown
---
|
|
sidebar_position: 5
|
|
---
|
|
|
|
# Win Point on Reel
|
|
|
|
## Overview
|
|
The **Win Point on Reel** system displays win points for each payline, including scatter wins.
|
|
|
|

|
|
|
|
## Asset Preparation
|
|
- **Core Assets**:
|
|
- Path: `assets/core-assets/hyper-core/packages/on-reel-present-win-point/prefab`
|
|
- 
|
|
|
|
- **Game Assets**:
|
|
- Path: `assets/game-assets/prefabs`
|
|
- 
|
|
|
|
## Setup
|
|
1. **Add Prefab to Scene**:
|
|
- Add the `on-reel-present-win-point` prefab to the main scene.
|
|
- Components:
|
|
- `on-reel-present-win-point`: Controls visibility of win points.
|
|
- `hyper-present-win-point`: Manages presentation flow.
|
|
- 
|
|
|
|
2. **Configure Node Targets**:
|
|
- Set the target node for win point labels and define size/offset.
|
|
- 
|
|
- Properties:
|
|
| 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. |
|
|
|
|
3. **Set Up Label Component**:
|
|
- Displays win values with support for formatted text (number, currency).
|
|
- Add a custom font:
|
|
- Path: `assets/game-assets/fonts/preloads/main-game/fnt-win-point-on-reel`
|
|
- 
|
|
- 
|
|
|
|
**Tip**: Follow game design specifications for position and size. |