3.9 KiB

sidebar_position
sidebar_position
6

Special Win System

Overview

Special Wins are high-value reward events categorized by payout thresholds:

Win Type Trigger Threshold Preview
Big Win Medium payout Big Win
Super Win High payout Super Win
Mega Win Maximum payout Mega Win

Implementation

Asset Preparation

  • Components:

    Component Purpose
    hyper-special-win-initializer Initializes the system.
    hyper-present-special-win Manages animation sequences and display logic.
    hyper-special-win-label-point-effect Controls win amount visualization.
    • Component Architecture
  • Coin Effect System:

    • Variants for different game theme:
      Submodule Theme Preview
      hyper-coin-shower-international International International Coin
      hyper-coin-shower-chinese Chinese Chinese Coin
  • Static Assets:

    Platform Path Preview
    Desktop assets/textures/desktop/preloads/special-wins Desktop Assets
    Mobile assets/textures/mobile/preloads/special-wins Mobile Assets

Animation Setup

  1. Animation Resources:

    • Path:
      Platform Path Preview
      Desktop assets/textures/desktop/postloads/anim-special-win Desktop Animation
      Mobile assets/textures/mobile/postloads/anim-special-win Mobile Animation
  2. Animation Flow:

    graph TD
        SW[Special Wins] --> BW[Big Win]
        SW --> SPW[Super Win]
        SW --> MW[Mega Win]
    
        BW --> BWI[bigwin-in] --> BWL[bigwin-loop] --> BWO[bigwin-out]
        SPW --> SPWI[superwin-in] --> SPWL[superwin-loop] --> SPWO[superwin-out]
        MW --> MWI[megawin-in] --> MWL[megawin-loop] --> MWO[megawin-out]
    
        classDef inStage fill:#e6f3ff,stroke:#666,color:#000
        classDef loopStage fill:#fff2cc,stroke:#666,color:#000
        classDef outStage fill:#f8cecc,stroke:#666,color:#000
        classDef winType fill:#d5e8d4,stroke:#82b366,color:#000
        classDef specialWin fill:#fff4dd,stroke:#ff0000,color:#000
    
        class BWI,SPWI,MWI inStage
        class BWL,SPWL,MWL loopStage
        class BWO,SPWO,MWO outStage
        class BW,SPW,MW winType
        class SW specialWin
        linkStyle default stroke-width:2px,stroke:#ff0000
    
    • Type Names
  3. Animation Settings:

    • Configure static fallback and loop animations:
      Setting Example
      Static Fallback Static Fallback
      Loop Animation Loop Animation
  4. Font Configuration:

    • Path: assets/game-assets/fonts/preloads/main-game/fnt-special-win
    • Steps:
      1. Import font files.
        • Font Packaging
      2. Add font to the special win component.
        • Font Integration
      3. Configure text alignment, font size, and spacing.
        • Font Layout

Tip:

  • Move assets to custom-scale/ to resolve image quality issues.
  • Customize font styles based on game design.