| Jason's profileXNA GamerBlogListsNetwork | Help |
|
XNA GamerA gamer trying to make games... January 05 "Shape Battles" - A Geometry Wars clone
So, I started playing and playing and eventually came up with "Shape Battles", my Geometry Wars clone. It's nowhere near as good or complete a game as GeoWars, but its a great start. It does have some pretty neat features:
It does have it's issues however:
I've obviously included the source code for this game, because thats the point of this blog! Download is below the instructions. Instructions for Playing: Note: This is a Windows game currently, but the only controller support currently is for the Xbox 360 controller. With a wired Xbox 360 controller, use the Left ThumbStick to control your player character, and the Right ThumbStick to fire your weapon. The angle of the Right ThumbStick dictates the direction that your stream of shots will go. The Right Bumper button is used to deploy your "Super Bomb" which will instantly destroy every enemy on the screen at once (use when in a bind). But be careful, as you have a limited amount (3). You are limited to 3 lives. Survive the first 30 seconds without firing a single shot (this includes Super Bombs) to get a Pacificier bonus of 1000 points! Survive the first 60 seconds to get an additional bonus of 5000 points!! Good luck with that too ;) There are 5 different types of enemies, each with different characteristics:
Press start after you get 'Game Over' to restart the game. Back will exit the game completely. Credit where credit is due! I must admit that I stole the idea for the enemies graphics from another similiar game that I came across, but I cant find the original link so I apologize in advance to the author of that game. (But he didn't post the source, just the game to download, so I recreated the graphics for what its worth.) The code that I used to get the rotating sprite and projectile angles correct I mention below, and was provided by a friendly MSDN Forum poster. Sounds were taken from Flashkit.com Sound FX library. The source code also includes XNAExtras, which I used to draw fonts to the screen for Scores and other UI things. This is a library that is publically available and you can find out more information about it here: http://blogs.msdn.com/garykac/articles/749188.aspx (I hope that I am not doing anything wrong by releasing my source that includes XNAExtras, but if so please someone let me know immediately!!) Download the source code for "Shape Battles":
January 03 Rotating a sprite using an Xbox 360 ThumbStickTook me a little while to find a solution for this problem. But as usual, posting a simple question on the XNA MSDN forums prompted tportz to provide me with a great chunk of code that worked perfectly (so thanks belong to that poster). Here is the code in a nutshell:
Fairly simple chunk of code, but the math part in the middle is pretty much over my head. Thanks again to tportz for providing this simple solution that would have driven me nuts otherwise (and was starting to, which prompted my original post to the MSDN forums). In other news, I will be posting my "Geometry Wars Clone" some day this week, I just need to clean up and better comment the code so it makes sense to others ;) Download source code that contains an example of a triangle sprite that you can freely rotate around in a full circle using the Left ThumbStick of an Xbox 360 controller.
January 02 Links / ResourcesWhile I'm wrapping up my first game project with XNA (and preparing it for download with tutorial article), please check out my Links / Resources (to the right). There are truly some excellent websites out there dedicated to helping others like me (us) learn XNA so that we can create our own games. Without sites like these, I would be quite clueless ;) My experiences with XNA and C#!Welcome to my XNA Programming blog. This is going to be a place where I will write about my trials and tribulations regarding Microsofts newest game development tool, XNA. This tool is a GREAT resource for people who are really interested in getting involved with Game Development, especially if you are interested in trying to make a game for the Xbox 360.
I am a programmer by trade, but have limited experience specifically with C#, and absolutely no game development experience. What lies in these blogs are my experiences working with XNA, games and/or demos that I have written, resources, and any tips and tricks I come across or figure out.
Thanks for stopping by, enjoy, and please feel free to comment! |
|
||||||||||||||||
|
|