View Full Version : Snake game opengl and C

09-23-2013, 10:03 AM
HI, i'm newbie with opengl, and i want to do a simple snake game. But i dont know where to start my snake, how do it the curves exactly like the game. when i send to a direction, all the blocks going to at the same time, not one by one at the point of the curve. Sorry for my english.
TY for the help.

carsten neumann
09-23-2013, 12:01 PM
Your question is not really about OpenGL, but about your game's logic and as such a (game) programming forum is probably a better place to ask it.
You could think of the snake as a sequence of blocks (each with a position and direction). Each time the snake moves you remove a block at the tail end and add a new one at the head.