How to download source code?
- Click here for source code.
- New window will open where there is a source code of this project. Download both files.
- Remember to run this code in Turbo C++ compiler.
Demo of the game
Check out the following video for the demo of this project.
For more source code and tutorial, SUBSCRBE to my YouTube channel.
Development platform
Computer programming language has been used to develop this project.
Compiler
Turbo C has been used as compiler. The compiler version for Turbo C that is used is 3.7.8.9.
Header files used
The header files used in this project are as follows :
- Conio
- Dos
- Graphics
- Stdio
Library functions
The following library functions has been used
- Under conio header file
- Clrscr
- Getch
- Under dos.h header file
- Sound
- Nosound
- Sound
- Under graphics header file
- Circle
- Closegraph
- Initgraph
- Rectangle
- Under stdio header file
- Main
Concepts used
Topics/ concepts of this language that you need to know for making this type of game :
- For looping statement
Logic description
To understand this project, at first you need to know about the frequencies of some musical notes. The most important task in this project is to produce musical notes. I have used following frequencies as parameter for sound function in this project.
Musical Note | Frequency (Lower) | Frequency (Higher) |
E | 659.3 | 1319 |
F# | 740.0 | 1480 |
G# | 830.6 | 1661 |
A | 880.6 | 1760 |
B | 987.8 |
|
C# | 1109 |
For making sound feel melodious, it is necessary to manage the play duration of each musical notes. Parameter inside delay function should be manipulated for that purpose.
No comments:
Post a Comment