Snake game basics

Hey guys, I've set my 'goal' to try and create a snake game, and I just can't wrap my head around it.
I already know the GetAsyncKeyState command and roughly how to use it.

Firstly, how do I define the borders of the game ; how do I create a simple map
(For example :
@@@@@
@ @
@ @
@@@@@
[edit : the border doesn't go right, but its basicaly a square made of symbols]
Secondly, how do I create an 'x' in there thats not part of the border, and is 'subjugated' to movement?


Thanks a lot in advance!
Last edited on
If you want to create this as a console-game, then you will obviously need to use some extended console control functions to position cursor anywhere you like.

However, these are not standard functions and they depend on specific compiler and libraries.

Perhaps this may help:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686025(v=vs.85).aspx

Though I did not try programming for windows for several years already.
Topic archived. No new replies allowed.