SarAhmed / 3D-Snake-Game

Classical 3D snake game, implemented using OpenGL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphics_Project

Project Demo

Description of the game

A player controls a snake that moves in a grid shaped ground, whose length increases by one unit when it collects targets that are periodically generated in the grid.
The game ends when one of the following conditions is satisfied. Either the snake collides with one of the obstacles(Grid border/Snake body) or time is out.
The game has an infinite number of levels, whose difficulty increases accordingly.
1st level, obstacles are the snake body and the grid border only.
2nd level, Adding on level 1, random obstacles are generated in the grid.
3rd level, Adding on level 2, the random obstacles periodically change their positions.
4th level till infinity, the snake speed and the frequency of generating obstacles
increases by a factor over the previous level.

Aim of the game

Collect the maximum number of targets throughout the game.
The player should collect at least 5 targets within every level in order to proceed to the next level.

How to play

Camera Controllers

z for First Person View.
x for Third Person View.
c for Corner View.

Snake Movement Controllers

In First or Third Person View

Right Mouse Click or m to move right.
Left Mouse Click or n to move left.

In Corner View

Keyboard Arrows to move Up, Down, Left or Right.

About

Classical 3D snake game, implemented using OpenGL.

License:MIT License


Languages

Language:C 87.5%Language:C++ 8.9%Language:HTML 3.6%