Roofen-Game
  • Welcome to Roofen Game
  • Frameworks
    • Common Stat
      • Demo
      • 🚀 Quick Start Guide
      • Runtime
      • Action
      • Formula
      • Examples
      • Debugger
      • FAQ
      • Version Update
      • FutureDirection
    • RToDo
  • Survivors Roguelike Kit
    • Quick Start
    • Core Concepts Overview
      • Scene Concepts
      • Stat Concepts
      • Skill Concepts
    • Adding a New Playable Character
    • Adding a New Enemy
    • Adding a New Stage Configuration
    • Adding a New Map Configuration
    • Adding a New Level
    • Adding a New Attack Skill
    • Adding a New Buff
    • Configuring the Exp System
    • Damage Numbers Display Guide
    • Upcoming Features Preview
    • Release Notes
  • RSOFramework
Powered by GitBook
On this page
  1. Survivors Roguelike Kit

Configuring the Exp System

PreviousAdding a New BuffNextDamage Numbers Display Guide

Last updated 23 days ago

Configuring the Experience (EXP) System

This guide shows you how to adjust the core EXP progression formula and customize individual EXP pickups in the RGame RoguelikeKit.

1. Adjust Level-Up Requirements

  1. In Unity’s Project window, navigate to:

    Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Exp/ExpConfig.asset
  2. Select ExpConfig.asset and inspect its two properties:

    • Base Experience: EXP required to reach Level 1.

    • Experience Increment: Additional EXP required per level.

  3. Formula:

    EXP required for Level n = Base Experience + Experience Increment × (n – 1)

    • Example: Base = 100, Increment = 50

      • Level 1 → 100 + 50×(1–1) = 100

      • Level 2 → 100 + 50×(2–1) = 150

      • Level 3 → 100 + 50×(3–1) = 200

Adjust Base Experience and Experience Increment to tune progression pacing.


2. Create or Modify EXP Pickup Prefabs

  1. Navigate to the EXP prefab folder:

    Assets/RGame/RoguelikeKit/Prefabs/DropOut/Exp40.prefab
  2. Select Exp40.prefab. In the Inspector, you’ll find the Exp property. This value determines how much EXP the player gains when collecting it.

  3. To create a new pickup:

    • Duplicate Exp40.prefab (CTRL +D or right-click → Duplicate).

    • Rename (e.g., Exp200.prefab).

    • Modify its Exp field to your desired amount.


3. Register Your EXP Pickup with the Object Pool

  1. Open the pool configuration asset:

    Assets/RGame/RoguelikeKit/ScriptableObjects/RuntimeDataSO/Pool/Pool.asset
  2. In the Inspector, click the + button under Pool Entries.

  3. Assign your new prefab:

    • Key: A unique string identifier (e.g., Exp200)

    • Prefab: Drag your Exp200.prefab here.

  4. This registers the pickup with the object-pooling system.


4. Assign EXP Pickups to Enemies

  1. Choose any enemy prefab (e.g.):

    Assets/RGame/RoguelikeKit/Prefabs/Enemy/CherryMonster.prefab
  2. In the Inspector, locate the DropOutKeys list.

  3. Add your EXP key (Exp200) to this list. On enemy death, the pool will spawn your custom EXP pickup.


With these steps, you can fully control both the level-up curve and how much EXP each pickup grants. Happy tuning!