Merge pull request 'feature/add-freeround' (#50) from feature/add-freeround into develop
Reviewed-on: #50
@ -1,11 +1,105 @@
|
|||||||
---
|
---
|
||||||
sidebar_position: 8
|
sidebar_position: 16
|
||||||
|
title: Free Round
|
||||||
|
description: Display and manage remaining free rounds in the game.
|
||||||
---
|
---
|
||||||
|
|
||||||
# Free Round
|
# Free Round
|
||||||
|
|
||||||
> To be added
|
## Overview
|
||||||
|
|
||||||
|
- Handles the **display** and **logic** for tracking remaining free rounds in a slot game.
|
||||||
|
- Supports both **desktop** and **mobile**, including animation and event handling.
|
||||||
|
|
||||||
|
| Orientation | Preview |
|
||||||
|
|-------------|---------|
|
||||||
|
| Desktop |  |
|
||||||
|
| Mobile |  |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
> To be added
|
## Implementation
|
||||||
|
|
||||||
|
### Prefab Location
|
||||||
|
|
||||||
|
#### In Core
|
||||||
|
|
||||||
|
| Path | Example |
|
||||||
|
|---------------------------------------------------------------------|------------------------------------------------------------------------------------------|
|
||||||
|
| `assets\core-assets\hyper-core\packages\freeround-count-box\prefabs` | <center></center> |
|
||||||
|
|
||||||
|
#### In Game
|
||||||
|
|
||||||
|
| Path | Example |
|
||||||
|
|-----------------------------------|---------------------------------------------------------------------------------------------------|
|
||||||
|
| `assets\game-assets\prefabs` | <center></center> |
|
||||||
|
|
||||||
|
### General Setup
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- Component that manages and displays the free rounds counter.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**(platform)**: Desktop / Mobile <span class="red-star">*</span>
|
||||||
|
|
||||||
|
| Property | Description |
|
||||||
|
|---------------|------------------------------------------|
|
||||||
|
| `duration` | Animation duration in seconds (fade In/Out) |
|
||||||
|
| `content` | Container node for the counter |
|
||||||
|
| `labelLeft` | Label displaying remaining free rounds |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Platform Setup
|
||||||
|
|
||||||
|
#### Desktop
|
||||||
|
|
||||||
|
| Component | Description |
|
||||||
|
|--------------------------|---------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `Platform-ui-controller` | [Platform UI Controller](http://localhost:3000/docs/faqs/setup-cocos-scene#Platform-ui-controller) |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
#### Mobile
|
||||||
|
|
||||||
|
| Component | Description |
|
||||||
|
|-----------------------|--------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| `Platform-ui-controller` | [Platform UI Controller](http://localhost:3000/docs/faqs/setup-cocos-scene#Platform-ui-controller) |
|
||||||
|
| `UI Mobile Position` | [UI Mobile Position](http://localhost:3000/docs/faqs/setup-cocos-scene#ui-mobile-landscape--portrait--position) |
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Font Setup
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style={{ width: "700px" }}>Preview</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><center></center></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
:::tip
|
||||||
|
- **Position And Size**: Follow Game Design.
|
||||||
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
## Game Result Examples
|
||||||
|
|
||||||
|
*To show the free round popup, make sure the main scene includes the popup panel.*
|
||||||
|
<span class="red-star">*</span> More Detail: [Popup Panel](http://localhost:3000/docs/setup-main-game/main-scene/popup-panel#multiple-popup-panel)
|
||||||
|
|
||||||
|
|Platform|Popup|Action|Result|
|
||||||
|
|--------|-----|------|------|
|
||||||
|
|Desktop||click → Start||
|
||||||
|
|Mobile||click → Start||
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 822 KiB |
After Width: | Height: | Size: 570 KiB |
After Width: | Height: | Size: 554 KiB |
After Width: | Height: | Size: 324 KiB |
@ -28,3 +28,6 @@
|
|||||||
--ifm-color-primary-lightest: #4fddbf;
|
--ifm-color-primary-lightest: #4fddbf;
|
||||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
.red-star {
|
||||||
|
color: red;
|
||||||
|
}
|