Introducing MPGH's AIGA. The latest advancement in artificial intelligence. Click here now to learn more!
Results 1 to 6 of 6
  1. #1
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy

    [Project] Space Attack [Source Code]

    ~~ Intro ~~

    I basically already posted this game, but not with the same code, The game is completely renewed, using classes way better now, using structs, proprieties on vars, etc.

    The whole game code design is completely different (not code logic, but design), It is now better, before i was using Lists / arrays of the same class, it was really a bad memory usage. Now im using structs with support of classes that contains their own methods/functions about that struct.

    Also, In overall the code is a lot cleaner.

    The old Topic is: https://www.mpgh.net/forum/31-c-c/121...-progress.html

    Feel free to check the differences on the code, which is a big difference.
    Also changed the explosion sprites since the other ones had black background and it was a pain to remove it (stupidity, and yes they were .png images).

    ~~ Features: ~~

    • The background scrolls (giving the effect of a high speed in space);
    • Enemy Ships has a vertical movement, just like most of every ship games, they come from top moving to the bottom, etc.
    • Enemy Ships shoots and kills you;
    • Player ship shoots and kills;
    • Player ship and Enemy ships explode;
    • Enemy Ships after a few time, changes to better ones;
    • Main Ship now moves with mouse and not keyboard;
    • Explosions works better now (and no black background, and new explosion color)
    • Changed enemy shots/rockets with the player ones.



    ~~ Heres a few Screens of the game: ~~








    ~~ How it works in a few words: ~~

    • It starts by randomly generating a position in X coord where ships (20 or 40 ships total, to start) will re-spawn like they are coming from top.. then they move etc...
    • Ships are randomly shooting (You might realize that sometimes one ship shoots like 4 times and other's don't even shoot, it's the random).
    • It will crash after all the 40 ships Spawn... Did not code further than that... nor an end.


    ~~ Future Features to Add / Bugs to fix: ~~


    • Add Levels (Only the First one which contains 40 Random Ships)
    • Add Boss's to the end of each level
    • Add Upgrades
    • Add MENU (duh.. a game without a menu, but i feel to lazy to create a menu, honestly..)
    • Shot collision with enemy ships are not working well, need to see what is wrong and fix (I'm sure it's about the math, easy fix)
    • Fix the fact that the last explosion frame from the Player ship stays after death. (easy fix, it's just a stupid if that is checking it wrong)
    • And more.. but not before I add these ones.


    ~~ Updated from previous one: ~~

    • Explosion to every ship
    • Added Explosion Effect on Everything
    • Fixed some coords on Shots
    • Fixed the fact that before you could shot dead (--'')
    • Added level Upgrade (Faster Ships, More Ships, and Faster Shots) (this is not a new level, it's a time on the level when it evolves)
    • Fixed other minor Bugs


    This is the Game Project, the whole code, etc.. not the .EXE only... For it to run you should have .NET & XNA Installed (if not downloaded automatically). Well, just wanted to share it, I will continue with it anyway.
    By the way the sprites/images from the ships weren't made by me. (Background was, easy with photoshop.. not a big deal, it's almost automatic).

    It is using .NET framework 3.5 i think:
    Download details: .NET Framework 3.5

    Get XNA:
    XNA Creators Club Online - downloads

    Virus Scans:
    SpaceAttackV1.rar - Jotti's malware scan

    VirusTotal - Free Online Virus, Malware and URL Scanner
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  2. The Following 6 Users Say Thank You to 'Bruno For This Useful Post:

    karemsame (08-14-2014),MJLover (08-29-2010),mlrmlr (07-30-2011),Rave_ (03-10-2011),Void (08-27-2010),winlinman (08-19-2012)

  3. #2
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    i can code this with VB XD good job!!

  4. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Quote Originally Posted by m_t_h View Post
    i can code this with VB XD good job!!
    Without any kind of libraries support?... Mainly the scroll movement :x but nice then ^^

    Edit: this is not windows forms..
    Last edited by 'Bruno; 08-27-2010 at 08:12 AM.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  5. The Following User Says Thank You to 'Bruno For This Useful Post:

    Hassan (10-11-2010)

  6. #4
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Very good job !! I wanna learn XNA too !!

  7. The Following User Says Thank You to MJLover For This Useful Post:

    'Bruno (08-29-2010)

  8. #5
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Then go ahead and learn ^^
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  9. #6
    rob7601's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    335
    Reputation
    4
    Thanks
    226
    My Mood
    Lurking
    very nice!! i love it xD cool game too
    [IMG]https://i727.photobucke*****m/albums/ww279/rob7601/aig-1.jpg[/IMG]
    [IMG]https://i727.photobucke*****m/albums/ww279/rob7601/Crossfire50.jpg[/IMG]


    ..::GOALS::..
    GET HACKS XDONE!
    GET XM8 xDONE!
    [ 50 ] POSTS xDONE!
    [ 100 ] POSTS xDONE!
    [ 250 ] POSTS xDONE!
    [ 500 ] POSTS
    { 100 } THANKS xDONE
    { 500 } THANKS
    { 1000 } THANKS
    GET 100/0 SCORE
    BECOME A MINION
    MAKE MY OWN HACKS

  10. The Following User Says Thank You to rob7601 For This Useful Post:

    'Bruno (09-01-2010)

Similar Threads

  1. [Tutorial] Multi-Line Spammer Tutorial + Source code and project
    By dragonattak in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 07-05-2011, 04:40 AM
  2. [Request] new source code for sudden attack sea
    By leang_97 in forum Sudden Attack General
    Replies: 8
    Last Post: 05-01-2011, 11:59 PM
  3. [Help] Req source code crosshaire Project Blackout
    By trebell in forum DirectX/D3D Development
    Replies: 2
    Last Post: 03-04-2011, 12:05 PM
  4. Sudden Attack NA Base Source Code tut (:
    By AznPwnage in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 07-23-2010, 01:54 PM
  5. [Source Code] Montage of VB 2008 Projects
    By scimmyboy in forum Visual Basic Programming
    Replies: 4
    Last Post: 01-14-2010, 12:37 PM