一些用了PCG game:minecraft/astroneer/the sims4(characters have personality)/spelunky/papers, please/spore/some roguelike games/Elite
how to create a good PCG game: teach machine which is good level+good programmer+good level designer
Randomness
property of sequence, is not a sequence of number
how does a computer generate a random number?
Marsaglia's Xorshift128 用这个算法来实现random
要输入一个initial number->seed
if there is sth come up with random?
Uncertainty in Game:
true randomness(Dice is not randomness because if we know the air and everything about dice we can predict the number of dice we rolled)
fake randomness(Hidden information)
Random vs Procedural
procedural is random with constrain:
比如颜色 需要的颜色是红色系的(generative space)
PCG:constructive有时候rgb不是最好的方式要换成HSB来
RGB->HSB
1. 随机数
Debug.Log(Random.Range(0, 10)); //[0,10] int
Debug.Log(Random.Range(0f, 10f)); //[0,10] float
2.随机颜色
public List<Color&