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
  • 1. Locate Character Prefab
  • 2. Configure Character Properties
  • 3.Custom Animation
  • 4. Adding a New Playable Character to the UI Panel
  • Creating a New Character Config
  • Adding the Character to the Selection UI
  • 5.Testing
  1. Survivors Roguelike Kit

Adding a New Playable Character

PreviousSkill ConceptsNextAdding a New Enemy

Last updated 14 days ago

1. Locate Character Prefab

  • Navigate to: Assets/RGame/RoguelikeKit/Prefabs/Player/Fighter.prefab

  • Best Practice: Duplicate the prefab before modification (Right-click → Duplicate)

2. Configure Character Properties

  1. Select the duplicated prefab

  2. In the Inspector window:

    • Locate the Player script component

3.Custom Animation

You can change the Animator. The following components must be present.

and the "Hit" GameObject

The rest of the GameObject are cosmetic, so you can just delete them if you don't need them.

You must include two animations in the Custom Animator, Idle and Run.

4. Adding a New Playable Character to the UI Panel

Creating a New Character Config

Option A: Duplicate an Existing Character

  • Navigate to: Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Level/SelectCharacter/

  • Right-click an existing CharacterSelectConfig and select Duplicate

  • Rename the new file (e.g., Warrior_Config.asset)

Option B: Create a New Config from Scratch

  • Right-click in the folder → Create → RGame → RoguelikeKit → UI → CharacterSelectConfig

  • Name it appropriately (e.g., Mage_Config.asset)

Adding the Character to the Selection UI

  • Open the prefab: Assets/RGame/RoguelikeKit/Prefabs/UI/MainMenu/CharacterSelect_Panel.prefab

  • Locate the MCharacterSos array (likely in a CharacterSelectionManager script)

  • Increase the array size and drag your new CharacterSelectConfig into an empty slot

5.Testing

  1. Open Assets/RGame/RoguelikeKit/Scenes/Initialization.unity

  2. Enter Play Mode

Modify BeginSkillKey (default skill assigned on spawn)

Information