I created this Unity version of Space Invaders as a complement tutorial to my first book for Packt Publishing. Its purpose was to teach my readers the basics of game engines such as Unity.
By following the instructions provided in the tutorial, you can easily achieve a similar result by yourself!
The hardest part in coding this game was to synchronize the behavior of the aliens in the swarm, in particular making them “jump” together towards the bottom of the screen upon reaching the border, while keeping their relative distances.
I resolved by creating a super-GameObject and, through it, controlling all alien ships as a single instance.