3 ms·
I believe you should have mentioned the evolutionary algorithm, so that people know why this is on HN. BTW, here's my own retro arcade game: https://fxtentacle
by fxtentacle 6y ago
I believe you should have mentioned the evolutionary algorithm, so that people know why this is on HN.
BTW, here's my own retro arcade game:
https://fxtentacle.itch.io/space-dance https://fxtentacle.itch.io/space-dance
- atum47 6y agoyou'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.
- atum47 6y agobeautiful game by the way