Simple Snake game using OpenGL C++, including a discrete snake robot model for producing real snakelike movements.
- UpArrow = Snake Direction Forward.
- LeftArrow = Snake Direction Left.
- RightArrow = Snake Direction Right.
- LeftMouseClick = Pause/Play.
- clone the game repository
$ git clone https://github.com/YogeshPhalak/Snake-Game-With-Realistic-Snake-Gaits.git
- Navigate to the downloaded main.cpp file
$ cd Snake-Game
- Run this command to build the game:
$ g++ main.cpp Env.cpp -o SnakeGame.out -lglut -lGLU -lGL -lgraph
- Run this command to run the game:
$ ./SnakeGame.out
- download
SnakeGame.out
formPrecompiled Executable/
- Run the following commands
$ chmod +x SnakeGame.out
$ ldd SnakeGame.out
- Run this command to run the game:
$ ./SnakeGame.out