Threadbare has a character randomizer to create distinct NPCs from a small number of component parts. See it in action in game_elements/characters/components/character_randomizer_test.tscn.
It works by picking the leg shape, body/clothes shape, head shape and hairstyle from a collection of different spritesheets; then recolouring the clothes, head and hair from a collection of different palettes for each.
There are already a large number of options (according to my quick calculation, 1,900,800 possibilities) but there is scope to do more:
- More hairstyles
- More head shapes
- More clothes shapes
- More leg shapes & walk animations
- Hats
- Facial hair (not sure how this would be implemented - perhaps as part of the face but using the hair chroma-key colours as well?)
@manuq implemented this system and drew all of the art himself, so he is the best person to ask for pointers!
Threadbare has a character randomizer to create distinct NPCs from a small number of component parts. See it in action in
game_elements/characters/components/character_randomizer_test.tscn.It works by picking the leg shape, body/clothes shape, head shape and hairstyle from a collection of different spritesheets; then recolouring the clothes, head and hair from a collection of different palettes for each.
There are already a large number of options (according to my quick calculation, 1,900,800 possibilities) but there is scope to do more:
@manuq implemented this system and drew all of the art himself, so he is the best person to ask for pointers!