2025-05-21 11:03:59 +07:00

3.4 KiB

sidebar_position
sidebar_position
5

Win Point on Reel

Overview

  • Displays win points for each payline, including scatter wins.

Overview

Implementation

Prepare Assets

In Core

Path Example
assets\core-assets\hyper-core\packages\on-reel-present-win-point\prefab ![Core Prefab](../img/05-main-scene/win-point-on-reel/win-point-core.png)

In Game

Path Example
assets\game-assets\prefabs ![Copied Prefab](../img/05-main-scene/win-point-on-reel/prefab-on-reel-in-game.png)

Setup

Steps 1: Add Prefab to Scene

Add the win point on reel prefab to your main scene.

Component Description
on-reel-present-win-point A component to **show/hide** points on reels
hyper-present-win-point Manages win point presentation flow
![Overview](../img/05-main-scene/win-point-on-reel/win-point-component.png)

Steps 2: Configure Node Targets

Set the target node where each win point label appears and define its size and offset.

![Overview](../img/05-main-scene/win-point-on-reel/win-point-node-target-component.png)
Property Type Description
labelPosition cc.Vec2 Offset position for the win point label
nodeTarget cc.Node Target node containing the label
cellItemSize cc.Vec2 Size of each slot cell
defaultFontSize number Default font size for the label

Steps 3: Set Up Label Component

Overview

  • Component:

    • Displays win values on the reels.
    • Supports formatted text (number, currency).
  • Custom Font:
    Add a custom font to style the win label.

Path Example
assets\game-assets\fonts\preloads\main-game\fnt-win-point-on-reel ![Overview](../img/05-main-scene/win-point-on-reel/add-font.png)

:::tip

  • Position And Size: Follow Game Design. :::