While not initially part of the project feature list I ended up implementing random generators for the creatures and the names.
Creature generatorLet's start with examples of the visuals; try to figure out how the generator works!
It is pretty simple. The generator randomly puts together a creature based on a set of variables:
- Body type (3 different types, with extra 3 particle effects to boot)
- Body rotation (from 0 to 360 degrees)
- Body scale (from .5x to 2x)
- Body texture (7 types)
- Body texture rotation (from 0 to 360 degrees)
- Body texture scale (from .5x to 2x, depends on texture somewhat)
- Colors (nearly the full spectrum, dark and light colors selected so that the body stands out from the eyes and mouths)
- Iris color (two colors from the full spectrum)
- Mouth type (3 different types)
- Mouth count (from 1 to 3)
- Eye count (from 1 to 3, total eye & mouth count maxes out at 4)
- Mouth and eye positions (6 different layouts)
- Voice type (3 different types)
- Voice pitch (from 0.5x to 1x, depends on voice type somewhat)
- Movement animation (horizontal or vertical, doesn't really matter!)
Permutations: (simplifying angles to 4 samples, scales to 3 samples and colors to 20 combinations):
870912000!Sounds pretty high and, yes, that number does not reflect reality. Small changes do not actually count as completely different creatures.
Creature name generatorBoth the creatures and the art pieces have their own name generators. The creature names are composed of altering vowels and consonants in the following forms:
V(cv)(-)vc(-vc)
C(vc)(-)cv(-cv)
V = vowel
C = consonant
() = optional letters
Examples:Yr-ylun
Ofogi
Ixekeb
Komqor
Num-syd
Yaxe
There is also a short blacklist for naughty words...A few popped up while testing! No two creatures can have the same name either.
Permutations:34737984Once again not all permutations are that unique.
Art name generatorThe art name generator is the least complicated of them all. There are 36 nouns, 35 adjectives and 30 attributes which are combined in the following ways:
Noun + "of" + Attribute
Adjective + Noun
Examples:Device of Rending
Expedient Crucifix
Stone of Subterfuge
Striking Vortex
Permutations:2340?Not that many, but this time each combinations is relatively unique as we aren't just talking about changes in individual letters.
ConclusionsGood to get random generation in one of these projects. Inspired to use some in a few future projects too.
Cheers.