Compare commits

...

13 Commits

Author SHA1 Message Date
3374d3516b add setup idle animation 2025-05-19 18:02:35 +07:00
d4a539b8b6 Merge pull request 'feature/add-win-limit' (#55) from feature/add-win-limit into develop
Reviewed-on: #55
2025-05-19 18:47:32 +08:00
dungdq
ea7a3be7f6 update content 2025-05-19 17:46:30 +07:00
dungdq
3a39971191 change content overview gamble 2025-05-19 17:40:58 +07:00
dungdq
5d7ff09498 update content 2025-05-19 17:36:09 +07:00
dungdq
4aebeabe7d add content overview 2025-05-19 17:33:31 +07:00
dungdq
321794fe9c format 2025-05-19 17:18:10 +07:00
dungdq
7e9ee66728 format content 2025-05-19 17:14:56 +07:00
dungdq
b4c1df7bd0 update conten 2025-05-19 17:11:37 +07:00
dungdq
118c309575 add content gamble 2025-05-19 17:07:34 +07:00
dungdq
9815c46cd9 change note tip 2025-05-19 16:38:08 +07:00
dungdq
89f3877352 add concont 2025-05-19 16:33:13 +07:00
dungdq
10b1a51b1c first commit 2025-05-19 14:59:08 +07:00
18 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,57 @@
---
sidebar_position: 16
---
# Idle Animation
---
## Overview
![Locate Prefabs](./img/16-idle-animation/overview.png) ![Major](./img/16-idle-animation/overview.gif)
## Prepare the assets
| Assets | Description |
|--------|-------------|
| ![Info Page Prepare Assets](./img/16-idle-animation/prepare-assets-1.png) | Used to Setup the static sprite frame. |
| ![Info Page Prepare Assets](./img/16-idle-animation/prepare-assets-2.png) | Used to Setup the idle animation. |
## Setup Idle Animation
### Configure Settings
Create the following script:
```jsx title="assets/game-assets/scripts/slotty-settings/extend-slotty-setting.js"
var BaseSlottySetting = p4fslot.require('slotty-setting');
var DIContainer = p4fcore.require('di-container');
BaseSlottySetting.prototype._registerInjection = function () {
DIContainer.Register('cellItemRender', require('idle-cell-item-render'));
DIContainer.Register('idleAnimationHandler', require('idle-animation-handler'));
};
```
### Setup Animations
1. Using hepler to generate animation using the prepared assets
![Background Setup Helper Anim](./img/16-idle-animation/setup-anim-helper-1.png)
![Background Setup Helper Anim](./img/16-idle-animation/setup-anim-helper-2.png)
2. Configure Spine Animation
- Set **Is Loop** ✅.
- Setup the **Static Sprite Frame** using the prepared assets.
![Background Setup Animation](./img/16-idle-animation/setup-anim-1.png)
### Configure Scene
1. Search for the `idle-animation-panel` prefab.
2. Drag the "prefab" into "scene".
3. Click "Generate Panel".
![Locate Prefabs](./img/16-idle-animation/configure-scene-1.png)
:::warning
When using **prefab** directly from **core-assets**, you should convert to **Regular Node**.
![Locate Prefabs](./img/16-idle-animation/configure-scene-warning.png)
:::

View File

@ -0,0 +1,72 @@
---
sidebar_position: 17
title: Win Limit
description: Display limit win
---
# Win Limit
### Overview
#### Win Limit
- The **Win Limit** popup appears during gameplay when the player's win points reach a predefined threshold.
![Win Limit Popup](../img/05-main-scene/win-limit/overview.png)
#### Gamble Win Limit
- The **Gamble Win Limit** popup is triggered during the gamble feature when the player reaches the maximum number of allowed gamble attempts (typically 5).
![Gamble Win Limit Popup](../img/05-main-scene/win-limit/overview-gamble.png)
---
### Prefab Location
| Path | Prefab Name |
|----------------------------------------------------------|------------------------------|
| `assets/core-assets/hyper-core/packages/present/prefabs` | `present-win-limit-reached` |
### Scene Hierarchy
Place the prefab in the following scene structure:
```
Canvas
└── [main-view]
└── [game-view]
└── [present-win-limit-reached]
```
![Scene Structure](../img/05-main-scene/win-limit/win-limit-component.png)
---
### Asset Setup
- Drag and drop the required image onto the node in the editor:
![Asset Setup](../img/05-main-scene/win-limit/assets-win-limit.png)
| Drag Sprite | Node Name |
|-------------------------|-----------------------|
| `you-won` | `you-won` |
| `win-limit-reached` | `win-limit-reached` |
| `gamble-limit-reached` | `gamble-limit-reached`|
| `btn-normal` | `btn-continue` |
| `text-continue` | `continue` |
### Font
- Use a **custom font** to match the win label style for your game theme.
![Font](../img/05-main-scene/win-limit/add-font.png)
---
:::tip
- Follow the game design layout for assets and fonts.
- Win limit configuration may vary by game.
:::

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB