105 lines
2.5 KiB
Markdown
105 lines
2.5 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Free Spins Implementation Guide
|
|
|
|
## Overview
|
|
The Free Spins feature provides bonus rounds where players:
|
|
- Receive complimentary spins
|
|
- Can win prizes without additional bets
|
|
- Often encounter enhanced winning opportunities
|
|
|
|

|
|
|
|
## Setup Process
|
|
|
|
### 1. Asset Configuration
|
|
|
|
#### Core Components
|
|
Required prefabs from core package:
|
|

|
|
|
|
#### Game-Specific Assets
|
|
Implementation prefabs:
|
|

|
|
|
|
### 2. Background Configuration
|
|
|
|
1. **Animation Setup**
|
|
```typescript
|
|
// Add to Animation Provider
|
|
animationProvider.addAnimation('freespin-background');
|
|
```
|
|

|
|
|
|
2. **Display Modes**
|
|
| Mode | Configuration |
|
|
|------|---------------|
|
|
| Landscape |  |
|
|
| Portrait |  |
|
|
|
|
### 3. Feature Implementation
|
|
|
|
#### Scene Structure
|
|
Required components:
|
|
- Trigger Display
|
|
- Retrigger Handler
|
|
- Win Presentation
|
|
|
|

|
|
|
|
#### Component Setup
|
|
|
|
1. **Trigger Configuration**
|
|
- Add assets:
|
|
- Fonts
|
|
- Textures
|
|

|
|
|
|
2. **Retrigger Configuration**
|
|
- Configure display elements
|
|

|
|
|
|
3. **Win Display**
|
|
- Set congratulations assets
|
|

|
|
|
|
:::tip Configuration Guidelines
|
|
Maintain consistency with game design specifications for:
|
|
- Font selection
|
|
- Visual elements
|
|
- Animation timing
|
|
:::
|
|
|
|
### 4. Optional Enhancements
|
|
|
|
#### Sidebands
|
|
Classic slot visual enhancement:
|
|
```typescript
|
|
interface SidebandConfig {
|
|
particleEffect: 'particle-free-sideband';
|
|
background: 'sideband-back';
|
|
foreground: 'sideband';
|
|
shine: 'sideband-shine';
|
|
liquid: 'sideband-static';
|
|
indicator: 'indicator-static';
|
|
}
|
|
```
|
|

|
|
|
|
#### Transitions
|
|
Polish between game states:
|
|
1. Configure animation provider
|
|
2. Set node mappings
|
|

|
|
|
|
## Implementation Examples
|
|
|
|
### Feature Flow
|
|
1. **Trigger**
|
|

|
|
2. **Active State**
|
|

|
|
3. **Completion**
|
|
 |