Character Selection¶
Choosing and selecting between various characters and accessories allows players to personalize their game, resulting in improved user experience, motivation, and engagement.
Currently, the character selection includes complete outfits and accessories like hats or glasses.
How to create a new Character¶
Before adding a new character to the game, you need to design and create the required assets. Feel free to take a look at the already existing characters and animations.
Sprites (saved under
Assets/Sprites/character/)Head (saved under
Assets/Tiles/HUD/)Animations (saved under
Assets/Animations/Player/)
For more information about the creation process see here.
How to add a new Character to the Character Selection¶
To expand the character selection with your newly created character (or accessory) you need to edit the CharacterSelection.cs script
located at Assets/Scripts/HUD/.
There you need to adjust the following parts:
numberOfCharacters,numberOfGlassesornumberOfHatsvariable depending on what was addedin the
SetupDictionariesmethod you need to add your outfit to both dictionaries, following the pattern already usedif you wish to add a text when the outfit is displayed see the
UpdateAccessoryWarningsmethodif you want to add an outfit that shouldn’t be able to equip accessories, you can take a look at the
santaortitanium_knightoutfits
add your images to
Assets/Resources/characters/,Assets/Resources/Glasses/orAssets/Resources/Hats/respectively.Make sure to name them according to the present naming scheme.
Other¶
The character is saved in the backend when the player goes back to the lecturer interface or starts playing a minigame. The saving process happens automatically and can be found here.
Not all outfits are unlocked immediately, most of them need to be bought in the shop.
Locked outfits will still be displayed but cannot be equipped. Some outfits also cannot equip any accessories.