4.6 KiB
sidebar_position
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.
- The panel is responsive and supports both desktop and mobile layouts:
Orientation | Preview |
---|---|
Desktop | ![]() |
Mobile | ![]() |
Implementation
Core Prefabs
Setup Steps
Desktop
-
Add the jackpot prefab to your main scene: - create new node, - add component
platform-node-spawner
-
Set its position to (0, 0).
-
Scene Hierarchy
Canvas └── [main-view] └── [game-view] ├── [logo] └── [jackpot-runner-panel-desktop-spawner]
 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.
-
Scene Hierarchy
Canvas └── [main-view] └── [game-view] ├── [logo] └── [contener-mobile-jackpot-runner] └── [jackpot-mobile-runner-panel-spawner]
-
Use
UI Mobile landscape Position
andUI Mobile portrait 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.
-
Scene Hierarchy
Canvas └── [main-view] └── [game-view] ├── [logo] ├── [jackpot-runner-panel-desktop-spawner] ├── [container-jackpot-runner-mobile] │ └── [jackpot-mobile-runner-panel-spawner] ... ... └── [jackpot-result-panel-spawner]
 More info: [Node Spawner](http://localhost:3000/docs/faqs/setup-cocos-scene#node-spawner)
:::tip
- Follow the game design layout.
- Scene Hierarchy:
Game Result Examples
Win Tier | Example |
---|---|
Grand | ![]() |
Major | ![]() |
Minor | ![]() |
Mini | ![]() |