Search Unity

Open-Source Boo Scrips for a Space Shooter

Discussion in 'Scripting' started by pivotraze, Apr 24, 2012.

  1. pivotraze

    pivotraze

    Joined:
    Feb 4, 2012
    Posts:
    593
    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, 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 - http://www.mediafire.com/download.php?3etndbnkgucwlf1
    Lose Script v1.1 - http://www.mediafire.com/download.php?cptm2ptjwceyp7y
    Main Menu Script v1.1 - http://www.mediafire.com/download.php?d7n9anxyrcwan1e
    Player Script v1.1 - http://www.mediafire.com/download.php?7x0lihq8vaayht0
    Projectile Script v1.1 - http://www.mediafire.com/download.php?0eaugvz71q15djk
    "Stars" Script v1.1 - http://www.mediafire.com/download.php?57hs27gv03bgdn1
    Win Script v1.1 - http://www.mediafire.com/download.php?ocnwhz5j96e1114
    Powerups v1.1 - http://www.mediafire.com/download.php?p75nt3petvu68ek
    Instructions1 v1.1 - http://www.mediafire.com/download.php?zt88bawa5o1a044
    Explosion v1.1 - http://www.mediafire.com/download.php?pes987792qfvbts
    Main v1.1 - http://www.mediafire.com/download.php?8636zwqyfszn952

    View the scripts online!
    Alright... I caved...

    Enemy Script v1.1 - http://pastebin.com/Df0AzTJU
    Explosion v1.1 - http://pastebin.com/Y3UvnCSb
    Instructions1 v1.1 - http://pastebin.com/sffsP7Zm
    Lose Script v1.1 - http://pastebin.com/kbpaqkYp
    Main v1.1 - http://pastebin.com/U31cPvdP
    Main Menu Script v1.1 - http://pastebin.com/qWxuQNx2
    Player Script v1.1 - http://pastebin.com/9arVnfV2
    Powerups v1.1 - http://pastebin.com/qLurvE66
    Projectile Script v1.1 - http://pastebin.com/J1sjvE90
    "Stars" Script v1.1 - http://pastebin.com/2r4tDYz0
    Win Script v1.1- http://pastebin.com/KGcBXKJ1

    Example:
    [redacted due to the fact that I had not been able to pay for the hosting of my site for a little bit.]

    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/24/2012 at 2:00PM (MST):
    Will be releasing a new version of all scripts soon. I have increased the comment amount by nearly ten fold. I comment many lines of code to explain what they do. In player.boo, I describe some basics of boo, but not even close to all of them. For Boo, I HIGHLY recommend MonoDevelop, as it has source code highlighting, and code auto-completion (which is rare for Boo right now))


    12/1/2012 at 11:33PM (MST):
    I now recommend SharpDevelop 4.2 for Boo. Contact me to learn how to get it to detect Unity-Specific variables, like Vector3 etc...
     
    Last edited: Dec 2, 2012
    Archeia likes this.
  2. Acour66

    Acour66

    Joined:
    Apr 27, 2012
    Posts:
    1
    Yo this is wicked. Im gonna keep this around for reference sakes. Thanks man
     
  3. pivotraze

    pivotraze

    Joined:
    Feb 4, 2012
    Posts:
    593
    Of course :) I'm glad you enjoy it. I'm translating more scripts right now. :)
     
  4. bucco

    bucco

    Joined:
    Feb 17, 2012
    Posts:
    164
    Nice!

    Keep the discussion up and then this could be a great post (not that much boo help out there)
     
  5. highway900

    highway900

    Joined:
    Jul 17, 2012
    Posts:
    5
  6. ArtOfWarfare

    ArtOfWarfare

    Joined:
    Sep 28, 2013
    Posts:
    23
  7. hnoor0033

    hnoor0033

    Joined:
    Jan 25, 2016
    Posts:
    1
    it has source code highlighting, and code auto-completion (which is rare for Boo right now))