Cross Road Game Computer Graphics Project in OpenGL


Cross Road Game Computer Graphics Mini Project in OpenGL – 18CSL67

Download the source code of Cross Road Game Computer Graphics mini Project in OpenGL for computer graphics and Visualization laboratory with mini-project – 18CSL67.

Problem Statement:

Crossy road game Simulation Computer Graphics Mini Project is to illustrate the concepts and usage of pre-built functions in OpenGL. The Objective of the Crossy Road game is to move across each lane to reach the other side of the road by avoiding the moving obstacles.

The player plays as a character where he accomplishes the game objective. With the use of arrow keys, the character moves in the appropriate direction such as Forward, Left, and Right to reach the opposite side of the Road, which is the main goal of the game.

The game consists of levels, where the speed of obstacles in a set path, such as cars increases as the level progresses.
The player must time movements correctly in order to pass these obstacles without touching the obstacle. We have used an input device keyboard to interact with the program.

Video Demonstration


The objective of Crossy Road is to cross lanes or series of roads and avoid obstacles as far as possible without dying. The player plays as a chosen character and must tap the up arrow key to go forward to move the character horizontally. The game consists of an endless series of obstacles(cars) in a set path. The player must time movements correctly in order to pass these obstacles without dying. If the player takes too much time crossing an obstacle or goes idle, the obstacle would hit the player, resulting in the game’s end.

Instructions to play cross road game:

The legend for user interaction is as follows:

  • Q/q - To quit.
  • L/l – To go to the next level.
  • Up arrow - To move forward.
  • Down arrow - To move backward.
  • Right arrow - To move right
  • Left arrow - To move left
  • Spacebar - To continue to the next screen.

User Requirements

  • Easy to understand and should be simple.
  • The built-in functions should be utilized to the maximum extent.
  • OpenGL library facilities should be used.

Hardware Requirements

  • Intel Pentium CPU 2.6 GHz or AMD Athlon 64 (K8) 2.6 GHz or higher
  • 1 GB RAM or more
  • Mouse
  • Keyboard 108 standard
  • Monitor resolution 800×600

Software Requirements:

  • Programming Language: C / C++ Using OpenGL
  • Operating System: Windows / Linux
  • Compiler: C / C++ Compiler (GCC)
  • IDE: Code Blocks
  • Functional Requirements: GLUT

Books referred:

Edward Angel: Interactive Computer Graphics A Top-Down Approach with OpenGL, 5th Edition, Pearson Education, 2008.

Computer graphics with OpenGL Book by Donald Hearn and M. Pauline Baker.

Screenshots of Cross Road Game Computer Graphics mini Project in OpenGL – 18CSL67

Cross Road Game
Home Screen
Cross Road Game 2
Instruction to play game
Cross Road Game 3
Play Mode

2 thoughts on “Cross Road Game Computer Graphics Project in OpenGL”

  1. Can you implement display score with respect time and display level also, send me my mail I will send money sir plz plz

Leave a Comment

Your email address will not be published. Required fields are marked *