87 lines
3.9 KiB
Markdown
87 lines
3.9 KiB
Markdown
---
|
|
sidebar_position: 15
|
|
---
|
|
# Jackpot Setup
|
|
|
|
---
|
|
|
|
## Overview
|
|
|
|
- **Jackpot Feature** is a system where there are **multiple levels (tiers)** of prizes, usually increasing in value. This structure gives players a chance to win **smaller jackpots more frequently**, while still keeping a large top prize available.
|
|
|
|
| Tier | Description | Preview |
|
|
|-------|------------------------------|------------------------------------------------------------|
|
|
| Grand | The top prize, very rare and often worth thousands or even millions (especially if it's progressive) |  |
|
|
| Major | A significant prize, harder to win. |  |
|
|
| Minor | A bit higher in value, still fairly common. |  |
|
|
| Mini | The smallest and easiest to win. |  |
|
|
|
|
- The panel is responsive and supports both desktop and mobile layouts:
|
|
|
|
| Orientation | Preview |
|
|
|-------------|------------------------------------------------------------|
|
|
| Desktop |  |
|
|
| Mobile |  |
|
|
|
|
## Implementation
|
|
|
|
### Core Prefabs
|
|
|
|
- Use the prefabs located at:
|
|
|
|
|`assets/core-assets/jackpot-package/prefabs`||
|
|
|--------------------------------------------|--------------------------------------------------------------------|
|
|
|
|
### Setup Steps
|
|
|
|
#### Desktop
|
|
|
|
- Add the jackpot prefab to your main scene.
|
|
- Set its position to **(0, 0)**.
|
|
|
|

|
|
|
|
More info: [Platform Node Spawner](http://localhost:3000/docs/faqs/setup-cocos-scene#platform-node-spawner)
|
|
|
|
#### Mobile
|
|
|
|
- Configure the jackpot node for both landscape and portrait orientations.
|
|
- Use `UI Mobile Position` for a responsive layout.
|
|
|
|

|
|
|
|
More info: [UI Mobile Position](http://localhost:3000/docs/faqs/setup-cocos-scene#ui-mobile-landscape--portrait--position)
|
|
|
|
- Example using `Platform Node Spawner`:
|
|
|
|

|
|
|
|
More info: [Platform Node Spawner](http://localhost:3000/docs/faqs/setup-cocos-scene#platform-node-spawner)
|
|
|
|
### Result
|
|
|
|
- The jackpot panel works seamlessly across all platforms and orientations.
|
|
|
|

|
|
|
|
More info: [Node Spawner](http://localhost:3000/docs/faqs/setup-cocos-scene#node-spawner)
|
|
|
|
:::tip
|
|
**Sibling Index Order:**
|
|
| Node Name | Sibling Index | Notes |
|
|
|----------------------------------------|---------------|---------------------------------------|
|
|
| `jackpot-runner-panel-desktop-spawner` | Lowest | Usually at the bottom |
|
|
| `container-jackpot-runner-mobile` | Middle | Between desktop and result panels |
|
|
| `jackpot-result-panel-spawner` | Highest | Always on top <br />  |
|
|
:::
|
|
|
|
|
|
## Game Result Examples
|
|
|
|
| Win Tier | Example |
|
|
|----------|------------------------------------------------------------------|
|
|
| Grand |  |
|
|
| Major |  |
|
|
| Minor |  |
|
|
| Mini |  |
|