Wednesday, February 23, 2011

Project #1: Snake (Complete)

And here we are, a completed version of Snake. Sorry for the late release, I've been sick and in the middle of a move so getting to a computer was difficult for me.


First things first, the game and its dependencies:

.NET 3.0 Redistributable: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=10cc340b-f857-4a14-83f5-25634c3bf043 (If you're on Vista or greater, you won't need this.)
XNA 3.0: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6521d889-5414-49b8-ab32-e3fff05a4c50
AwesomeSnake: http://dl.dropbox.com/u/5684321/AwesomeSnake.rar

And, for those who want it, here's the source: http://dl.dropbox.com/u/5684321/AwesomeSnakeSource.rar
Just keep in mind the licensing (found here: http://creativecommons.org/licenses/by-nc-sa/3.0/).

You'll need WinRAR or a similar program to extract AwesomeSnake.rar. Just put it wherever you want and run AwesomeSnake.exe.

You may also be interested in looking at settings.cfg. You can change the game mode between Single, Versus, and Co-op. For player one, use W A S D to move around. For player two, use the arrow keys. As your snake eats food, it will grow in size, and increase in speed.

One of the more important tweaks I've made to Matti's code is to have the snakes behave differently when they hit walls depending on the game mode. If you're in versus, and you hit a wall, you will simply wrap around to the other side of the level. In every other mode, you will die.

A major problem with the versus mode in this game is that the loser is the one who has less points. This presents a problem, as either player could get enough points to win, and then kill themselves. If I had more time, I would spend some thought on what could be done to fix this, but unfortunately I'm already past the deadline by a day and can't.

Closing thoughts on this project: I'm unhappy with how bad the actual code looks right now, but I put my throat infection and house-moving to blame for this. I had to put most of the final work onto Matti's shoulders, and he didn't have enough time to really code things in a neat manner. Next project, I'll be striving to make the code as neat as possible. Another thing, while slightly unrelated, has to do with the visuals. The art is great, but I neglected to get a background image. The grey background looks terrible, and I can't think of any way to make it better.

I'll be posting a new project either tonight or early tomorrow. Matti and I have been discussing doing a remake of Tron, but I'm considering leaving that for later as online play is one of the things I really would like to have in a game like that.

No comments:

Post a Comment