Compare commits
13 Commits
92f3ff6f39
...
3374d3516b
Author | SHA1 | Date | |
---|---|---|---|
3374d3516b | |||
d4a539b8b6 | |||
|
ea7a3be7f6 | ||
|
3a39971191 | ||
|
5d7ff09498 | ||
|
4aebeabe7d | ||
|
321794fe9c | ||
|
7e9ee66728 | ||
|
b4c1df7bd0 | ||
|
118c309575 | ||
|
9815c46cd9 | ||
|
89f3877352 | ||
|
10b1a51b1c |
57
docs/02-setup-main-game/05-main-scene/16-idle-animation.md
Normal file
@ -0,0 +1,57 @@
|
||||
---
|
||||
sidebar_position: 16
|
||||
---
|
||||
# Idle Animation
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
 
|
||||
|
||||
## Prepare the assets
|
||||
|
||||
| Assets | Description |
|
||||
|--------|-------------|
|
||||
|  | Used to Setup the static sprite frame. |
|
||||
|  | 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
|
||||
|
||||

|
||||

|
||||
|
||||
2. Configure Spine Animation
|
||||
- Set **Is Loop** ✅.
|
||||
- Setup the **Static Sprite Frame** using the prepared assets.
|
||||
|
||||

|
||||
### Configure Scene
|
||||
|
||||
1. Search for the `idle-animation-panel` prefab.
|
||||
2. Drag the "prefab" into "scene".
|
||||
3. Click "Generate Panel".
|
||||
|
||||

|
||||
|
||||
:::warning
|
||||
When using **prefab** directly from **core-assets**, you should convert to **Regular Node**.
|
||||
|
||||

|
||||
:::
|
72
docs/02-setup-main-game/05-main-scene/17-win-limit.md
Normal 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.
|
||||
|
||||

|
||||
|
||||
#### 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).
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
### 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]
|
||||
```
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
### Asset Setup
|
||||
|
||||
- Drag and drop the required image onto the node in the editor:
|
||||
|
||||

|
||||
|
||||
| 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.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
:::tip
|
||||
- Follow the game design layout for assets and fonts.
|
||||
- Win limit configuration may vary by game.
|
||||
:::
|
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 372 KiB |
After Width: | Height: | Size: 488 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 97 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 65 KiB |
BIN
docs/02-setup-main-game/img/05-main-scene/win-limit/add-font.png
Normal file
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 424 KiB |
BIN
docs/02-setup-main-game/img/05-main-scene/win-limit/overview.png
Normal file
After Width: | Height: | Size: 571 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 377 KiB |