56 lines
1.7 KiB
Markdown
56 lines
1.7 KiB
Markdown
---
|
||
sidebar_position: 17
|
||
title: Win Limit
|
||
description: Display win limit popups during gameplay.
|
||
---
|
||
|
||
# Win Limit
|
||
|
||
## Overview
|
||
The **Win Limit** system displays popups when specific win conditions are met, enhancing player feedback and interaction.
|
||
|
||
- **Win Limit Popup**: Appears when a player’s win points reach a predefined threshold.
|
||

|
||
|
||
- **Gamble Win Limit Popup**: Triggered during the gamble feature when the maximum number of gamble attempts (typically 5) is reached.
|
||
|
||

|
||
|
||
## Prepare Assets
|
||
|
||
#### 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]
|
||
```
|
||
- 
|
||
|
||
## Setup
|
||
|
||
#### Assets
|
||
- Drag and drop the required images onto the corresponding nodes in the editor.
|
||
- 
|
||
|
||
| 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, aligning with the game’s theme.
|
||
- 
|
||
|
||
**Tip**:
|
||
- Follow the game design layout for asset placement and font styling.
|
||
- Verify win limit configurations to ensure they match game-specific thresholds. |