gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Snake source code?

#158926 - Romaap - Sat Jun 21, 2008 10:32 am

Does anybody know if there is a sourcecode for a snake game for NDS?

#158927 - tepples - Sat Jun 21, 2008 11:46 am

Romaap wrote:
Does anybody know if there is a sourcecode for a snake game for NDS?

You mean snake as in Solid Snake, or snake as in Nibbles? I made a Nibbles clone for the NES once.

No wait, you said "NDS" meaning DS. Would my game in nesDS count? ;-)
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#158942 - Vloz - Sun Jun 22, 2008 4:28 pm

Hey man, i made a Snake a little time ago, and the source of a simplified version can be found >there<

However, this snake has been made with PAlib library (so it will be a little bit different if you are using the LIBNDS), the comments are french and to finish, i am a f*** newbie in programming, so a lot of thing should be bad... :S

(sorry for my bad english...)

#158945 - chatterbug89 - Sun Jun 22, 2008 6:41 pm

I also have a snake game called Super Snake DS, but for various reasons I didn't release the source and either way it is very messy and goes well beyond a basic snake game.

Anyway, it may help to do a google search for "C snake game". You'll find a bunch of examples that should help you understand the logic behind the game so you can write it for the NDS. Though, I think it would be more fun to figure it out yourself. Plus, it'd be a better learning experience (if you are wondering if I "cheated", I diden't. :-) )

#158949 - keldon - Sun Jun 22, 2008 9:25 pm

What is it exactly that you are after?

#159161 - Romaap - Thu Jun 26, 2008 11:43 am

thanks for the reply's. ^^

i'm looking for a snake game like this:
[Images not permitted - Click here to view it]