3 ms·
you're right, InvaderZ implements GA to evolve the enemies. source code: https://github.com/victorqribeiro/invaderz https://github.com/victorqribeiro/invaderz
by atum47 6y ago
you're right, InvaderZ implements GA to evolve the enemies.
source code: https://github.com/victorqribeiro/invaderz https://github.com/victorqribeiro/invaderz
- fxtentacle 6y agoFrom what I understand, the GA is used for the shape, and then the shape determines both where it can be hit and also its movement pattern. https://github.com/victorqribeiro/invaderz/blob/1e4512c336b9be8368b8b6ca476548312532c5c4/js/Invader.js#L26-L33 https://github.com/victorqribeiro/invaderz/blob/1e4512c336b9... My guess would be that the "ideal" invader is fully transparent. Can that happen?
- atum47 6y agoroughly speaking I guess there is a 1/(0,5^16) of that happening. I wrote the code back in 2018. I don't fully remember it. I just decided to share on itchio yesterday.