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?
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.