Trending Games | Crowfall | Stronghold Kingdoms | Elder Scrolls Online | MechWarrior Online

    Facebook Twitter YouTube YouTube.Gaming
Login:  Password:   Remember?  
Show Quick Gamelist Jump to Random Game
Members:3,191,419 Users Online:0

Show Blog

Link to this blogs RSS feed

The B-Log

Not as good as the A-Log, admittedly, but it's Blaise's weekly thoughts on MMOs, and why he is or isn't playing one at the moment. A General Thought blog by someone who is studying at Uni, awaiting his moment to start working... in quality assurance.

Author: Blazz

Little Spaceship Game Tutorial ++;

Posted by Blazz Tuesday February 9 2010 at 11:18PM
Login or Register to rate this blog post!

I am enjoying learning little things about how the XNA engine works.

Here's a list of features that the 2D tutorial gives you in your step by step created game:

-A Static Background
-A rotatable cannon
-The GameObject class

(contains it's own variables, things like it's position, whether it's "alive" or not, what texture it uses, etc.)

-The ability to fire cannonballs from the cannon
-The ability to kill enemies with those cannonballs
-A score


And that's about it... it's a nice tutorial, and I highly recommend it to game designers who have little skill in the programming department, and want to expand on what little skill they have to make, say, a little platformer or something (although the spaceship game is much more simple than a platformer)


Now, as of my last blog post, I had just finished the 2D tutorial. That was what, two days ago? Three? Well, I think I've improved upon the game pretty heavily, if I do say so myself. Behold, a FEATURE LIST!

-Sound (when cannonballs are fired, and when cannonballs hit spaceships)
-The AnimatedGameObject class

(contains NEW variables, like "currentframe", "currentkeyframe", "keyframetimer", and "totalframes"!)

-A pause menu, with buttons controlled by the UP/DOWN keys on your keyboard, or the DPad UP/DOWN keys on your XBox 360!
-AnimatedGameObject Explosions when a spaceship dies! (with a different alive condition, based on it's currentframe!)
-New and improved AnimatedGameObject enemy spaceships that animate to the speed of their velocity.X!


I think I've done pretty well, and while I may pat myself on the back (ahhh, that's the spot, right there... yeaaaaaahhhh...) I still have many things I want to do, before I consider this "tutorial" game finished!

See, I have a checklist that I wrote down a few days ago.

  1. Add a pause button (done!)
  2. Add a full starting menu
  3. Add an in-game menu (resume, exit) (done!)
  4. Find out how to play sounds (done!)
  5. Find out how to animate objects (done! And using a single file, too!)
  6. Create explosions for spaceships (done!)
  7. Make ships fall to the ground
  8. Add in a lose condition
  9. Add a lose/play again/exit menu
  10. Add weapons
  11. Add enemies
  12. Add levels
  13. Add bosses
  14. Find out how to save to file
  15. Highscores
  16. Save/load

So yeah, I still have some work to do. I'm currently working on a super-secret ComplexAnimatedGameObject class, but shhhh, I'm saving it for when I make a platformer in the not-too-distant future.


So yeah, erm, put your mind to something, and, if you don't have full-time work or university studies yet, you can do it!


-Blaise Guy

Blazz writes:

Have now done 2, 8 and 9. I also added in a soundtrack, woo! Just checking to see if the thing repeats...

Wed Feb 10 2010 3:45AM Report writes:
Login or Register to post a comment

Special Offers