Improve content

This commit is contained in:
Pham Huynh Duc Huy 2025-05-27 16:32:53 +07:00
parent 5207567b5e
commit 85e105cbe8

View File

@ -5,6 +5,7 @@ sidebar_position: 1
# Powerplay
## Overview
The **Power Play** feature enhances gameplay with **BUY-BONUS FEATURE** and **FAST-PLAY FEATURE** by providing a dynamic interface for player controls, integrated into the main scene for both desktop and mobile platforms.
![Desktop Bottom Bar](./img/powerplay/preview1.png)
![Desktop Bottom Bar](./img/powerplay/preview2.png)
@ -14,63 +15,52 @@ sidebar_position: 1
## Prepare Prefabs
### Step 1: `power-play-panel.prefab`
**Copy**
`template-power-play-panel`
from
`assets/core-assets/hyper-core/packages/power-panel/prefabs/template-power-play-panel.prefab`
### Step 1: Configure `power-play-panel.prefab`
1. **Copy Prefab**:
- Source: `assets/core-assets/hyper-core/packages/power-panel/prefabs/template-power-play-panel.prefab`
![From Template](./img/powerplay/from-powerplay-panel.png)
**Paste & Rename To**
`assets/game-assets/prefabs/power-play-panel.prefab`
2. **Paste and Rename**:
- Destination: `assets/game-assets/prefabs/power-play-panel.prefab`
:::warning
Must rename the prefab to **`power-play-panel`**
Rename the prefab to **`power-play-panel`** to ensure proper referencing
:::
![Renamed Prefab](./img/powerplay/powerplay-panel-to.png)
---
### Step 2: `mobile-power-play-panel`
**Copy**
`template-mobile-power-play-panel`
from
`assets/core-assets/hyper-core/packages/ui/mobile-ui/prefabs/templates/template-mobile-power-play-panel.prefab`
### Step 2: Configure `mobile-power-play-panel.prefab`
1. **Copy Prefab**:
- Source: `assets/core-assets/hyper-core/packages/ui/mobile-ui/prefabs/templates/template-mobile-power-play-panel.prefab`
![From Template](./img/powerplay/mobile-from.png)
**Paste & Rename To**
`assets/game-assets/prefabs/mobile/power-play-panel.prefab`
2. **Paste and Rename**:
- Destination: `assets/game-assets/prefabs/mobile/mobile-power-play-panel.prefab`
:::warning
Must rename the prefab to **`mobile-power-play-panel`**
Rename the prefab to **`mobile-power-play-panel`** to ensure proper referencing
:::
![Renamed Prefab](./img/powerplay/mobile-to.png)
---
### Step 3: `template-label`
**Copy 5 Prefabs from**
`assets/core-assets/slotty-core/packages/power-panel/editor/`
### Step 3: Configure Label Prefabs
1. **Copy Prefabs**:
- Source: `assets/core-assets/slotty-core/packages/power-panel/editor/`
- Copy all 5 label prefabs.
![From Folder](./img/powerplay/label-template-from.png)
**To**
`assets/game-assets/editor/`
2. **Paste**:
- Destination: `assets/game-assets/editor/`
![To Folder](./img/powerplay/label-template-to.png)
---
## Edit Prefab
**Follow the design and edit the prefab accordingly:**
Customize the `power-play-panel` and `mobile-power-play-panel` prefabs according to the game design specifications.
![Prefab Design](./img/powerplay/label-template-to.png)
@ -139,6 +129,12 @@ Append this param to the local URL:
![Setup Manual Powerplay](./img/powerplay/manual-powerplay-setup.png)
**Tip**:
- Verify that all asset paths are correct and accessible in your project directory.
- Test the Power Play feature on both desktop and mobile to ensure responsiveness and functionality.
- Ensure the `minNormalBet` parameter aligns with the games betting requirements.
:::warning
If your game already has **`shortcut-buy-feature`** set up, this node may already be configured.
:::