I have no idea at all, nothing, on how to make a full, running and working snake game.
I tried starting off using character symbols in ASCII to draw its head and body, but from there on I have no clue on how to make it move with out having to redraw the screen and rewrite its position after every key press handler/event or detection.
I have no idea on how to do this. And I mean do it with out extended graphics, only C++'s native things, and it's possible because others have done it and I really could use some small tips on how to get movement, collision and such. And please be descriptive and explain well, if so. Thanks.
Here's my useless code so far.....
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
int k = WM_KEYDOWN;
int gridpositions[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30};
snakehead = snakeposition;
char snakehead = '@';
int snakeposition[0];
snakeposition + snakehead = gridpositions;
switch(k)
{
case VK_DOWN:
snakeposition =-1[snakeposition[-1]]; break;
}
}
Please help me I'm absolutely clueless and I REALLY want to make a snake game today.
I will feel SO much better about myself if I actually got some working and useful help on this VERY appreciated.