DanBrink

I'm fairly new to C#, OOP, XNA, you name it. I am however trying to take some initiative and go ahead and make an actual game (I made a Tic-Tac-Toe game before to try out XNA). So far my ideas for this game are to have a :

Player Class: Moves the player's ship, creates bullets and tells them where to go.

Enemy Class: Controls the Enemy's AI and handles collision with bullets.

EnemyManager Class: Controls spawning enemies, checking their state and then updating them. (I need help with this, I originally wanted to hold an array of about 20 enemies, so I can keep recycling the objects but I'm finding this difficult if anyone has any advice on this or references for me to look at.)

Bullet Class : Moves bullets, controls collision with enemies and players eventually.

Bullet Manager: Same deal as EnemyManager, hold them in an array of about 10 and recycle them.

I really need help with these manager classes, if anyone has any references please post them here. I'll post again with some code and more specific issues tomorrow.


Re: XNA Game Studio Express 2D Arcade Space Shooter, Bullet firing

Kyle_W

You should probably study the SpaceWar starter kit that comes with XNA. It's architecture is probably not exactly like what you are describing, but certainly it has a bullet management system.



Re: XNA Game Studio Express 2D Arcade Space Shooter, Bullet firing

DanBrink

How silly of me, after looking at the code this looks to be pretty good stuff. I'll try rewriting some code using a Space Wars like approach. Thanks for the response!




Re: XNA Game Studio Express 2D Arcade Space Shooter, Bullet firing

Kyle_W

No problem... if you base your game on SpaceWar, and if you can get it finished by the 28th of this month, you can enter it into the Dream Build Play contest for a chance to win $500. See www.dreambuildplay.com for details.