92 lines
3.8 KiB
Markdown
92 lines
3.8 KiB
Markdown
---
|
|
sidebar_position: 6
|
|
---
|
|
|
|
# Special Win System
|
|
|
|
## Overview
|
|
Special Wins are high-value reward events categorized by payout thresholds:
|
|
|
|
| Win Type | Trigger Threshold | Preview |
|
|
|----------|-------------------|---------|
|
|
| **Big Win** | Medium payout |  |
|
|
| **Super Win** | High payout |  |
|
|
| **Mega Win** | Maximum payout |  |
|
|
|
|
## Implementation
|
|
### Asset Preparation
|
|
- Components:
|
|
| Component | Purpose |
|
|
|-----------|---------|
|
|
| `hyper-special-win-initializer` | Initializes the system. |
|
|
| `hyper-present-special-win` | Manages animation sequences and display logic. |
|
|
| `hyper-special-win-label-point-effect` | Controls win amount visualization. |
|
|
- 
|
|
|
|
- **Coin Effect System**:
|
|
- Variants for different game theme:
|
|
| Submodule | Theme | Preview |
|
|
|-----------|-------|---------|
|
|
| `hyper-coin-shower-international` | International |  |
|
|
| `hyper-coin-shower-chinese` | Chinese |  |
|
|
|
|
- **Static Assets**:
|
|
| Platform | Path | Preview |
|
|
|----------|------|---------|
|
|
| Desktop | `assets/textures/desktop/preloads/special-wins` |  |
|
|
| Mobile | `assets/textures/mobile/preloads/special-wins` |  |
|
|
|
|
### Animation Setup
|
|
1. **Animation Resources**:
|
|
- Path:
|
|
| Platform | Path | Preview |
|
|
|----------|------|---------|
|
|
| Desktop | `assets/textures/desktop/postloads/anim-special-win` |  |
|
|
| Mobile | `assets/textures/mobile/postloads/anim-special-win` |  |
|
|
|
|
2. **Animation Flow**:
|
|
```mermaid
|
|
graph TD
|
|
SW[Special Wins] --> BW[Big Win]
|
|
SW --> SPW[Super Win]
|
|
SW --> MW[Mega Win]
|
|
|
|
BW --> BWI[bigwin-in] --> BWL[bigwin-loop] --> BWO[bigwin-out]
|
|
SPW --> SPWI[superwin-in] --> SPWL[superwin-loop] --> SPWO[superwin-out]
|
|
MW --> MWI[megawin-in] --> MWL[megawin-loop] --> MWO[megawin-out]
|
|
|
|
classDef inStage fill:#e6f3ff,stroke:#666
|
|
classDef loopStage fill:#fff2cc,stroke:#666
|
|
classDef outStage fill:#f8cecc,stroke:#666
|
|
classDef winType fill:#d5e8d4,stroke:#82b366
|
|
classDef specialWin fill:#fff4dd,stroke:#ff0000
|
|
|
|
class BWI,SPWI,MWI inStage
|
|
class BWL,SPWL,MWL loopStage
|
|
class BWO,SPWO,MWO outStage
|
|
class BW,SPW,MW winType
|
|
class SW specialWin
|
|
linkStyle default stroke-width:2px,stroke:#ff0000
|
|
```
|
|
- 
|
|
|
|
3. **Animation Settings**:
|
|
- Configure static fallback and loop animations:
|
|
| Setting | Example |
|
|
|---------|---------|
|
|
| Static Fallback |  |
|
|
| Loop Animation |  |
|
|
|
|
4. **Font Configuration**:
|
|
- Path: `assets/game-assets/fonts/preloads/main-game/fnt-special-win`
|
|
- Steps:
|
|
1. Import font files.
|
|
- 
|
|
2. Add font to the special win component.
|
|
- 
|
|
3. Configure text alignment, font size, and spacing.
|
|
- 
|
|
|
|
**Tip**:
|
|
- Move assets to `custom-scale/` to resolve image quality issues.
|
|
- Customize font styles based on game design. |