예제 #1
0
playsound()
{
	if(sound==1)
	{
		ozclick(0);
	ozsound(4);
	wait(1500);
	ozsound(3);
	wait(1500);
	ozsound(2);
	wait(1500);
	ozsound(1);
	wait(1500);
	ozquiet();
	}
}
예제 #2
0
main()
{
	ozgetauxsize();
	ozclick(0);
	ozcls();
	if(load==1)
	{
		loadconfig();
	}
	if(mov==1)
	{
		if(watch==1)
		{
			movie();
			watch=0;
		}
	}
	ozcls();
	high=1;
	prevhigh=0;
	score=0;
	shots=25;
	hits=0;
	misses=0;
	acc=0;
	bullseyes=0;
	ozquiet();
	ozsetfont(FONT_OZ_LARGE);
	ozputs(0,0,"OZ Clay Pigeons");
	ozsetfont(FONT_OZ_NORMAL);
	ozputs(95,3,"Version 2.0");
	ozputs(0,20,"(1) Play OZ Clay Pigeons");
	ozputs(0,30,"(2) High Scores");
	ozputs(0,40,"(3) Keys");
	ozputs(0,50,"(4) Options");
	ozputs(0,60,"(5) Quit OZ Clay Pigeons");
	ozputs(130,20,"Made with Hi-Tech C;");
	ozputs(130,30,"USE AT YOUR OWN RISK!");
	ozputs(130,50,"Up/Dn arrows to select");
	highlight();
	main();
}
예제 #3
0
hitsound()
{
	if(sound==1)
	{
		ozclick(0);
		ozsound(20);
		wait(1500);
		ozsound(40);
		wait(1500);
		ozsound(60);
		wait(1500);
		ozsound(80);
		wait(1500);
		ozsound(100);
		wait(1500);
		ozsound(104);
		wait(1500);
		ozsound(103);
		wait(1500);
		ozsound(102);
		wait(1500);
		ozquiet();
	}
}
예제 #4
0
파일: tc_port.c 프로젝트: arpruss/ozdev
/* sound a bell, or beep */
void Bell(void) {
/* don't want to include dos.h just for these. */
ozsound(5);
ozdelay64hz(16);
ozquiet();
}