~~ 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