Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mavster

Snake

This topic is 6711 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was just woundering about how difficult it would be to make a snake game like the good old ones. I've done programming for several years, but not that many games, and most of it was in VB and Delphi. So I was think about mabe doing snake as a way to learn C++. So if any of u guys have any comments, inputs or tips about the subject, I'd be happy to hear them. Cheers Mavster Edited by - Mavster on 6/27/00 10:13:33 AM

Share this post


Link to post
Share on other sites
Advertisement
boy, i have to tell you, that''s what i did for my final in C.S. and i spent so much time on it i''ve practically MEMORIZED the code... i could write it in my sleep, almost... so if you have any questions, like, "what''s a good method for keeping track of the postitions of things and stuff", or just about anything, e-mail me, or post them here.
farmersckn

Sometimes even chickens need to eat... Don't bang your head against a wall just to enjoy the good feeling when you stop.

Share this post


Link to post
Share on other sites
Just get a good documentation of C++, read it and then start coding

Your game should be very simple (hey...it is SNAKE! Snake IS simple ) so don''t spend too much time on music and such stuff.
You don''t need map routines, you don''t need a menu, you don''t really need a GUI...so don''t waste the time on coding useless stuff!

The first thing you have to get running is the snake moving around properly. Then you could implement a simple "collision-detection" system, that means that the game ends as soon as the snake bites in its own tail ...
The next step to do is to implement apples, mice, or whatever you want your snake to eat
Randomly spread that food over the screen and let the snake collect them.
The last thing to do is make the screen look nice and implement the scoring system.

But you can add some "new" features:

* Detect the "value" of the food. The snake doesn''t grow as much on eating an apple than on eating a mouse (for example)
* If you implement a mouse, what about letting it run around the screen? It sure is very funny to try to catch that mouse!

That''s all I can think of at the moment. I hope you can need that stuff anyway

Yours,

Indeterminatus

--consuetudo est quasi altera natura hominum...

Share this post


Link to post
Share on other sites
Snake was my first game ever and it took me less than an hour to write... And when I started game programming (2 months ago?!?) I had been programming for like 2 years or so in variety of languages... and I was just starting off with C/C++... So hey.. grab a few tuts from the net and buckle up... you''ll have your snake in no time... if you''re a fast learner.. If you need help with anything, we''ll be around.. so just drop us a line and you''re gonna get an answer.. most likely

..-=ViKtOr=-..

Share this post


Link to post
Share on other sites
Thanx for your response guys. Will get started on the game in one of the comming days. Have a book on C++ which looks good.

I''ll post a msg up here if I run into any trouble. Might even post a link where u guys can get it when it is finished, if any of u should be bored enough to want to play it.

Cheers

Mavster

Share this post


Link to post
Share on other sites
Sup! I''m looking forward to seeing what you''ve actually done!
It sure is fun to play, and I can compare "your" Snake with "mine"...

Yours,

Indeterminatus

--si tacuisses, philosophus mansisses--

Share this post


Link to post
Share on other sites
How does your snake move. Does it "only" 4 directions in that case I won´t see much trouble.
But does anyone make game where snake does round curves i´ve seen one and believe that´s harder to make.
Btw check game named Boabite3d(Im not sure is it available anywhere else than Finland)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!