C# creating a simple snake game

Posted by Guy David on Game Development See other posts from Game Development or by Guy David
Published on 2012-03-01T15:46:12Z Indexed on 2012/06/26 9:23 UTC
Read the original article Hit count: 335

Filed under:

I was thinking about creating a snake game with C#, so I ran ideas in my head, and some problems came up.

How can I track and output in the correct location the blocks that run after the snake's head?

If the snake is built of five blocks, and the user starts going in a circle, how can I print the snake body in the right location?

Also, how can I create an action that will run on the background, which will move the snake forward, no matter what the user does?

What structure should my code have? (code design structure)

This should be a console application, since it's the only framework I am familiar with.

I am not looking for finished code, since I want to really understand how it should work.

© Game Development or respective owner

Related posts about c#