I want the computer to beep at 2/3 different tones for my pong game (when hitting the padde, when hitting the wall, when it falls down)
how do i do this ? what's the simplest way ?
I want the computer to beep at 2/3 different tones for my pong game (when hitting the padde, when hitting the wall, when it falls down)
how do i do this ? what's the simplest way ?
in Turbo C++, if your making it for DOS, include stdlib.h, conio.h, and stdio.h, and use the function sound().
Code:sound(100); //low sound(500); //medium sound(1000); //ear-pearceing scream
what about bc++ 5.5 ?
i need to compile this game only with that..
also, how do i contrl the length of the tone?
oh yeah im sorry
Code:sound(100); delay(500);//half a second nosound();