add content jackpot
@ -1,11 +1,86 @@
|
||||
---
|
||||
sidebar_position: 15
|
||||
---
|
||||
|
||||
# Jackpot Setup
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
- The jackpot feature includes four tiers: Grand, Major, Minor, and Mini, each offering different payout values.
|
||||
|
||||
| Tier | Description | Preview |
|
||||
|-------|------------------------------|------------------------------------------------------------|
|
||||
| Grand | Highest and rarest jackpot |  |
|
||||
| Major | High-value, less rare |  |
|
||||
| Minor | Medium, more frequent |  |
|
||||
| Mini | Lowest, frequent small wins |  |
|
||||
|
||||
- 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 |  |
|
||||
|
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 240 KiB |
After Width: | Height: | Size: 634 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 645 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 654 KiB |
After Width: | Height: | Size: 625 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 681 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 190 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 6.4 KiB |