Project: Autonomous Creatures Part 2

Ok, today I integrated neural networks into the whole thing. So now the “creature” can move according to input.

The directions it can move in were done with vectors. And since a square grid doesn’t allow it to move diangonally in the same distance it can move vertically/horizontally, a work-around had to be found.

Using some basic trigonometry, we’ll use a rough estimate of (0.7, 0.7) as the vector for diagonal movement.


I’ve also added an enemy circle (cos everyone knows circles are completely and utterly evil…), but I’m still unsure how to input it into the neural net. Don’t get me started on how I’m gonna use gAs, cos that’s still far off.