#1
  1. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247

    My Space Invaders Clone


    Here's a blast from the past. Bear in mind that the code quality may be slightly dismal since I'd only learned some Java about a few hours before banging out the code. This was written almost 10 years ago and written for Java 1.0, since that was the only compiler available then. The indentation is a bit funky since the code was written in an editor that didn't convert tabs to spaces correctly.

    Instructions
    Play the Game
    The Source code in Java

    The code is liberally commented because I was going to write a tutorial around the program, but never got around to it. Anyway, have fun folks!

    Comments on this post

    • fierydog agrees : Pretty Neat!!! 2 rep points for you!
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  2. #2
  3. No Profile Picture
    what do I know about diamonds?
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    ON, Canada
    Posts
    950
    Rep Power
    174
    Heh, thats awsome, but it seems to have some bugs it doesn't really shoot all the time. and i had a lot of bullets go straight though the bugs!!

    good times though

  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    It isn't meant to shoot all the time. Only one of your shots can be active at a time (it's in the instructions ). This is similar to the original space invaders game which also allowed only one shot to be active at a time.

    Also, the enemy's shot is the same color as your shot and is dropped by one of the higher aliens, so it does pass through the others.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  6. #4
  7. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
  8. #5
  9. No Profile Picture
    what do I know about diamonds?
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2003
    Location
    ON, Canada
    Posts
    950
    Rep Power
    174
    ahhh i see
    i'm not to bright!!!

    good show

  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Posts
    2
    Rep Power
    0
    I always enjoy a good classic. Good job!
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Posts
    3
    Rep Power
    0
    Nicely done

IMN logo majestic logo threadwatch logo seochat tools logo