Roofen-Game
  • Welcome to Roofen Game
  • Frameworks
    • Common Stat
      • Demo
      • Quick Start
      • Runtime
      • Action
      • Formula
      • Examples
      • 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 Wave Configuration
    • Adding a New Map Configuration
    • Adding a New Level
    • Adding a New Attack Skill
    • Upcoming Features Preview
  • RSOFramework
Powered by GitBook
On this page
  • Step 1: Create Enemy Attribute Configuration
  • Step 2: Create Enemy Prefab
  1. Survivors Roguelike Kit

Adding a New Enemy

PreviousAdding a New Playable CharacterNextAdding a New Wave Configuration

Last updated 4 days ago

Step 1: Create Enemy Attribute Configuration

  1. Navigate to: Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Enemy/

  1. Right-click an existing enemy config (e.g., Enemy1.asset) → Duplicate

  2. Rename (e.g., Enemy_SkeletonMage.asset)

  3. Open the new config and modify attributes:

Step 2: Create Enemy Prefab

  1. Go to: Assets/RGame/RoguelikeKit/Prefabs/Enemy/

  2. Duplicate an existing enemy prefab (e.g., Enemy_Orc.prefab) → Rename (e.g., Enemy_SkeletonMage.prefab)

  3. Modify components:

    • SpriteRenderer: Assign new sprite (e.g., Assets/Sprites/Enemies/SkeletonMage.png)

    • Animator: Procedural animations will auto-generate

    • Enemy script:

      • Assign your new MValueConfigSO (e.g., created in the previous step)

      • Is Drop Out Box Whether or not it drops a bonus treasure chest, if it's a boss you have to check it off.

Edge Color is ablative colors after death. “Dissolve Effect” rest of it you don't need to set. You can try each part in practice. Practice is the quickest way to learn this section.