I want to make a game, where the object of the game is for each NPC to evolve, using a…
Jump to turn (11)
- 1I want to make a game, where the object of the game is for each NPC to evolve, u
- 2Unity is the game engine
- 3part of the DNA sequence is decision making, fight / flight, mating drive, etc.
- 4great idea, create a simple NeuralNetwork in c# to handle this
- 5redo the controller with this network
- 6in the controller you have a property called LineOfSight, what is this
- 7how do I put these together on an Npc game objectg
- 8show me the NPCBehavior class
- 9add the DNA to the NPCBehavior
- 10continue the code
- 11show me the last for loop
- User
I want to make a game, where the object of the game is for each NPC to evolve, using a DNA sequence or Random Length. Each NPC has a NN defined by a random input sequence, each position in the sequence is a value between A and Z. A value of a space in the input character means that input node is turned off. An NPC has a gender, and can 'mate' with someone of the opposite gender, but they aren't limited to form a relationship with oposite genders, but only oposite genders can produce offspring. An offspring is a merge of the NPC's 'DNA' sequence. Only NPC's with the same length of DNA can successfully mate and produce offspring. The merge of the DNA, takes each of the parents gene's and average the value for each character in the DNA entry with a small random bias to introduce evolution. Each character in the DNA represents a Gene, and each of the 26 possible values of a gene, represents something in the NPC. Position 1 tells the NPC how many legs it has, pos 2, the color of the skin, 3 does it have eyes, 4 does it have hearing, etc...
- Assistant