83 lines
3.3 KiB
Markdown
83 lines
3.3 KiB
Markdown
---
|
|
sidebar_position: 15
|
|
---
|
|
# Jackpot
|
|
---
|
|
|
|
## 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 <br />and often worth thousands <br />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
|
|
|
|
### Prepare Assets
|
|
|
|
- Use the prefabs located at:
|
|
|
|
|`assets/core-assets/jackpot-package/prefabs`||
|
|
|--------------------------------------------|--------------------------------------------------------------------|
|
|
|
|
### Setup
|
|
|
|
#### Jackpot runner
|
|
|
|
##### Desktop
|
|
|
|
- The node jackpot to your main scene:
|
|
|
|

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

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

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

|
|
|
|
More info: [Node Spawner](/docs/faqs/setup-cocos-scene#node-spawner)
|
|
|
|
:::tip
|
|
- Follow the game design layout.
|
|
:::
|
|
|
|
|
|
## Game Result Examples
|
|
|
|
| Win Tier | Example |
|
|
|----------|------------------------------------------------------------------|
|
|
| Grand |  |
|
|
| Major |  |
|
|
| Minor |  |
|
|
| Mini |  |
|