Use of Binoculars

Use of Binoculars


This project is related to the subject of Computer Graphics. We, as a group of 3 people, have made two different and simple games. One of them is called ‘Arkenoid’ whereas the other one is called ‘Ping Pong’. Both of them involve very simple and basic programming as well as graphics concepts.

We have used C++ as our programming language and the project is based on the DOS platform. As a result of this, the quality of graphics may not be as good as the one achieved using mode 13h.

Basic line and circle drawing algorithms, namely Bresenham’s Line and Circle drawing algorithms are used. As far as filling output primitives is concerned, we have used flood fill algorithm.

To represent each game, we have used classes and objects. One particular class represents a game, and each class has different methods or functions which are applicable to the respective classes.

Arkenoid is basically a brick destroying game. There are 30 bricks which need to be hit by a ball. To prevent the ball from falling into the abyss, there is a paddle or a ship of rectangular shape which moves horizontally and is controlled by the player.

Ping Pong is a 2-player game. Both players have a rectangular bat or racquet to hit the ball; whoever misses the ball loses a point. The player to score 10 points wins the game.


Graphical User Interface (GUI) is a type of user interface which allows people to interact with a computer and computer-controlled devices. It presents graphical icons, visual indicators or special graphical elements called "widgets". Often the icons are used in conjunction with text, labels or text navigation to fully represent the information and actions available to a user. But instead of offering only text menus, or requiring typed commands, the actions are usually performed through direct manipulation of the graphical elements. To achieve this, functionality has been arranged into different ``interfaces'' for...

Similar Essays