Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Game Development › XNA Development › [Project] Space Attack [Source Code]

[Project] Space Attack [Source Code]

Posts 1–6 of 6 · Page 1 of 1
'Bruno
'Bruno
[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: http://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
#1 · 16y ago
/B
/b/oss
i can code this with VB XD good job!!
#2 · 16y ago
'Bruno
'Bruno
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..
#3 · edited 16y ago · 16y ago
MJLover
MJLover
Very good job !! I wanna learn XNA too !!
#4 · 16y ago
'Bruno
'Bruno
Then go ahead and learn ^^
#5 · 16y ago
rob7601
rob7601
very nice!! i love it xD cool game too
#6 · 16y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • [Source Code] Montage of VB 2008 ProjectsBy scimmyboy in Visual Basic Programming
    4Last post 16y ago
  • Sudden Attack NA Base Source Code tut (:By AznPwnage in Programming Tutorial Requests
    0Last post 16y ago
  • [Help] Req source code crosshaire Project BlackoutBy trebell in DirectX/D3D Development
    2Last post 15y ago
  • new source code for sudden attack seaBy leang_97 in Sudden Attack General
    8Last post 15y ago
  • Multi-Line Spammer Tutorial + Source code and projectBy dragonattak in CrossFire Hack Coding / Programming / Source Code
    5Last post 15y ago

Tags for this Thread

None