2025-05-21 14:36:53 +07:00

1.9 KiB

sidebar_position
sidebar_position
5

Win Point on Reel

Overview

The Win Point on Reel system displays win points for each payline, including scatter wins.

Win Point Overview

Asset Preparation

  • Core Assets:

    • Path: assets/core-assets/hyper-core/packages/on-reel-present-win-point/prefab
    • Core Prefab
  • Game Assets:

    • Path: assets/game-assets/prefabs
    • Game Prefab

Setup

  1. Add Prefab to Scene:

    • Add the on-reel-present-win-point prefab to the main scene.
    • Components:
      • on-reel-present-win-point: Controls visibility of win points.
      • hyper-present-win-point: Manages presentation flow.
      • Win Point Component
  2. Configure Node Targets:

    • Set the target node for win point labels and define size/offset.
    • Node Target Component
    • Properties:
      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.
  3. Set Up Label Component:

    • Displays win values with support for formatted text (number, currency).
    • Add a custom font:
      • Path: assets/game-assets/fonts/preloads/main-game/fnt-win-point-on-reel
      • Font Setup
    • Label Component

Tip: Follow game design specifications for position and size.