74 lines
3.5 KiB
Markdown
74 lines
3.5 KiB
Markdown
---
|
|
sidebar_position: 8
|
|
title: Free Round
|
|
description: Display and manage remaining free rounds in the game.
|
|
---
|
|
|
|
# Free Round System
|
|
|
|
## Overview
|
|
The **Free Round** system manages the display and logic for tracking remaining free rounds with fixed bet in the game, supporting both desktop and mobile platforms.
|
|
- **International theme popup**
|
|

|
|
- **Chinese theme popup**
|
|

|
|
|
|
|
|
| Platform | Preview |
|
|
|----------|---------|
|
|
| Desktop |  |
|
|
| Mobile |  |
|
|
|
|
## Asset Preparation
|
|
- **Core Assets**:
|
|
- Path: `assets/core-assets/hyper-core/packages/freeround-count-box/prefabs`
|
|
- 
|
|
- **Game Assets**:
|
|
- Path: `assets/game-assets/prefabs`
|
|
- 
|
|
|
|
## Setup
|
|
1. **General Configuration**:
|
|
- Ensure script references correct nodes.
|
|
- 
|
|
- Properties:
|
|
| Property | Description |
|
|
|----------|-------------|
|
|
| `duration` | Duration of fade in/out animation (seconds). |
|
|
| `content` | Container node for the counter. |
|
|
| `labelLeft` | Label showing remaining free rounds. |
|
|
- 
|
|
|
|
2. **Platform Setup**:
|
|
- **Desktop**:
|
|
- Add `Platform-ui-controller` component.
|
|
- 
|
|
- **Mobile**:
|
|
- Add `Platform-ui-controller` and `UI Mobile Position` components.
|
|
- 
|
|
|
|
3. **Asset Setup**:
|
|
- **Desktop**:
|
|
- Path: `assets/game-assets/textures/desktop/preloads/main-game/custom-scale`
|
|
- 
|
|
- **Mobile**:
|
|
- Path: `assets/game-assets/textures/mobile/preloads/main-game/custom-scale`
|
|
- 
|
|
- **Common**:
|
|
- Free Round Background: 
|
|
|
|
4. **Font Setup**:
|
|
- 
|
|
|
|
**Tip**:
|
|
- Follow game design for position and size.
|
|
- Use separate textures for Desktop and Mobile.
|
|
- Ensure the main scene includes the popup panel ([See Popup Panel Guide](/docs/setup-main-game/main-scene/popup-panel#multiple-popup-panel)).
|
|
|
|
## Game Result Example
|
|
| Platform | Popup | Action | Result |
|
|
|----------|-------|--------|--------|
|
|
| Desktop |  | Click → Start |  |
|
|
| Mobile |  | Click → Start |  |
|
|
|
|
 |