Note: this thread is old. This is one of the first projects I did in Unity, long ago, but I posted it to the forums here and it has gotten occasional comments and questions ever since. One of those comments prompted me to update it for Unity 5, but when doing so I realized the project was actually quite a mess. Apparently Iāve learned a thing or two since then, but also back then Unity didnāt have a lot of the features it has nowā¦e.g., things like no collision matrix made hacking around with IgnoreCollision necessary. So I redid it from scratch, aside from the graphics/sound, using modern features in Unity 4.6 (since I canāt really bear to use the old GUIText/Texture objects now). And yes it works fine in Unity 5, though the physics in the title screen are a little off, at least with b17.
Since itās a relatively small project, I thought it might make a decent example of a complete game for newcomers to maybe learn a few things from, so I uploaded the project folder (see links below). I think some things are easier to understand in context, and this ended up covering quite a few areasā¦2D sprites in a 3D environment (though mostly not ārealā sprites since I used material offset animation), particle effects, sound, scoring, physics, multiple camera techniques, layers, a bit of level management, object pooling, simple UI elements, etc.
There are some elements that are easily tweakable in the inspector (on the āMain Cameraā object mostly), but it might make an interesting exercise to expand on the game if anyone feels so inclined. Powerups, different alien behavior, bosses, etc. Right now itās just yer basic Space Invaders.
Some of the sound effects are modifications of sounds from the Gear Worx Productions āmodern weapons and warfareā sound pack (the explosions and ricochets), so please donāt reuse those unless youāve also bought a license from them. The rest of the stuff is by me (aside from a few publicly-available sound effects), which you can do with as you like.
Download here for Unity 4.6. (The old junky version is here, though it was updated several times and works with Unity 4.3.)
āEric