Snake Attack! my game
Hello. I'm just a beginner C++ programmer, and this is one of my first games. It's just a Tron clone. Tell me what you think! The source code is included, and it's fairly messy, but it's also commented on a fair amount.
The only real problem I'm having with it is this:
When I first made it, I couldn't get the snakes to do a 180 degree turn (if you're moving right, go up and then left really fast) extremely quickly. The best I could do was the snake being one space away from itself when it turned around instead of right next to itself (you'll see when you run the program.)
The thing is, when I restructured some stuff (or something like that, I can't even remember.) Suddenly, the snake on the left was able to turn around and be going right next to itself, yet the other snake still has a space between it's head and the rest of itself! I just can't figure out why. Not too much of a problem, but if anyone could figure out why I wouldn't mind knowing how that happens =D.
Oh! Also, if the snakes come at eachother at a 90 degree angle and their head run right by eachother, the game will not end. I know how to fix that, but since it's so rare and so hard to do on purpose, I thought it would be neat to keep in. =)
PLEASE! Download and tell me what you think!
Oh yeah, I made this in Borland.
Very good. try to make an option for one or two players, where on one player you play against the pc
thank you for your snake game. I was wracking my brain for the posxy() function, and your code helped me remeber it. Hope to post a wikked game up here myself soon! Cheers,
When I tried playing it said I was missing A DLL!:mad: :mad: :(
I tried to run it but I'm missing "cm3230.dll" Could you post that?
**edit** I typed the wrong dll name
Here you go, although I'm not the original poster, I'm just putting the DLL on for you.
Cool game, but could you make 2 player mode an option instead of a standard? I'd like a computer opponent. Kinda like what biosninja said.
cool game. AI would be a plus tho. Good Job :)