Coders Packet

simple game in a C++ using OpenGL library

By Nagaraj G N

This is a simple game where we use keyboard keys to protect the base from falling space stones.

     A fascinating game has been developed utilizing the powerful graphics library, OpenGL. The game, titled "Simple Game in C++ Using OpenGL Library," has been programmed in the C++ language. The game's standout feature is a rotating wheel utilized to safeguard the base(earth) from falling stones. The player can control the wheel's movement using the keyboard interface. If the stone and rotating wheel intersect at the center, the stone disappears, but if not, it falls onto the base. This game promises an engaging and enjoyable experience for all players.

These are the key functions used in the OpenGL library: 

1) glTranslatef();

2) glRotatef(); 

3) glutWireSphere();

4) glColor3f(); 

5) glVertex2f();

 

Please find the screenshots attached below.

Rotating wheel

falling stone

 

 

 

 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Nagaraj G N (Nagarajgn7911)

Download packets of source code on Coders Packet