Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Snake game opengl and C

  1. #1
    Newbie Newbie
    Join Date
    Sep 2013

    Snake game opengl and C

    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.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts