2025-05-20 17:09:24 +07:00

4.0 KiB

sidebar_position, title, description
sidebar_position title description
16 Free Round Display and manage remaining free rounds in the game.

Free Round

Overview

  • Handles the display and logic for tracking remaining free rounds in a slot game.
  • Supports both desktop and mobile, including animation and event handling.
Platform Preview
Desktop Desktop
Mobile Mobile

Implementation

Prepare Assets

  • Copy or parse prefabs from core to game assets.

Core

Path Preview
assets/core-assets/hyper-core/packages/freeround-count-box/prefabs Desktop

Game

Path Preview
assets/game-assets/prefabs Preview

Setup

  • Ensure the script references the correct nodes.

General

  • Manages and displays the remaining free round count in-game.

Desktop"

Property Description
duration Duration of fade in/out animation (seconds)
content Container node for the counter
labelLeft Label showing remaining free rounds

Platform Setup

  • Ensure that the desktop and mobile prefabs are positioned differently in the main game scene for proper layout on each platform.
Desktop

Desktop

Component Description
Platform-ui-controller View Setup
Mobile

Desktop

Component Description
Platform-ui-controller View Setup
UI Mobile Position Mobile Position Setup

Asset Setup

Desktop
Path Preview
assets/game-assets/textures/desktop/preloads/main-game/custom-scale Assets Desktop
Mobile
Path Preview
assets/game-assets/textures/mobile/preloads/main-game/custom-scale Assets Mobile
Common
  • Free Round Background
    Assets Mobile

🔗 More: Game Asset Structure

:::tip

  • Position & Size: Follow the game design layout.
  • Asset Packing: Use separate textures for Desktop and Mobile. :::

Font Setup

Preview
Assets Mobile

Game Result Example

Make sure the main scene includes the popup panel.
🔗 See Popup Panel Guide

Platform Popup Action Result
Desktop Popup Desktop Click → Start Result Desktop
Mobile Popup Mobile Click → Start Result Mobile