I followed the 3DBuzz tutorial on Space Shooter, and as I thought I would do, I’m releasing all of the scripts for it under a BSD license.
I used Boo instead of C#, so in that instance, if you want to learn Boo, you will need to do some source code reading
I tried to do as much commenting as possible without making it too crowded. If you want to know what something does, just comment on this thread.
Currently, it is an exact copy of 3DBuzz’s tutorial (plus a few bug fixes, and powerups), minus the use of C# as the scripting
I will be adding extras, like “Powerups” etc… It doesn’t include the assets, but you can find all of them from the 3DBuzz tutorial. I can zip up assets under request, as I used my own personal assets that is… higher quality in some ways.
The Scripts:
Enemy Script v1.1 - Enemy
Lose Script v1.1 - Lose
Main Menu Script v1.1 - mainMenu
Player Script v1.1 - player
Projectile Script v1.1 - projectile
“Stars” Script v1.1 - Stars
Win Script v1.1 - Win
Powerups v1.1 - Powerups
Instructions1 v1.1 - Instructions1
Explosion v1.1 - Explosion
Main v1.1 - main
Example:
http://seafiresoftware.org/SpaceShooter/WebPlayer.html
Changelog:
Scripts v1.0:
Initial Release. All the same features as 3DBuzz’s tutorials on SimpleGame.
Scripts v1.0.5:
Fixed bug where holding down while at bottom of screen and shooting would destroy ship.
Scripts v1.1:
Fixed a bug where Explosions didn’t delete. Add the “Explosions.boo” script on the explosion prefab. Add the main script to the MainCamera only if you delete the Player/Ship and make a prefab of it. Instructions1 requires a new scene and the script added the the MainCamera. Add Powerups script to the Enemy.
Notes:
4/26/2012 at 7:31PM (MST):
I highly recommend MonoDevelop for Boo. Syntax Highlighting, and “Intellisense”/Code Completion is available in MonoDevelop for it ![]()
5/16/2012 at 10:49PM (MST):
After looking around, I now highly recommend SharpDevelop over MonoDevelop. It has better code Completion in my opinion. The only annoyance is you need to start a project and add UnityEngine.dll as a reference