【默 认 名】:sjgq.mrp
【大 小】:98Kb
【显 示 名】:手机钢琴2.3
【作 者】:无
【介 绍】:我的手机钢琴
【发布网站】:凯幽MRP开发网www.mrpyy.cn
─────────────────
int main(){int a;
cls(200,200,200);
rect(1,80,SCRW-2,25,0,0,205);
drawtxt("正在加载钢琴程序...",SCRW/2-45,SCRH/2,120,0,120,1);
refresh(0,0,SCRW,SCRH);
for(a=3; a<=SCRW-6; a=a+1)
{ rect(3,82,a,21,200,0,100);
refresh(a,80,SCRW-2,40);
} sleep(1000);
bjfh();
} int bjfh()
{
cls(250,50,0);
srect(1,1,SCRW-2,SCRH-2,25,155,205,255,55,25,0);drawtxt("1 2 3 4 5 6 7 8 9 0",10,SCRH-50,255,255,255,1); drawtxt("帮助",2,SCRH-19,255,255,255,0);
drawtxt("退出",SCRW-36,SCRH-19,255,255,255,0);
drawtxt("手机钢琴 2.3",18,2,255,0,0,2); drawtxt("欢迎使用手机钢琴2.3",SCRW/2-80,SCRH/2-18,255,255,255,0);
drawtxt("首次使用请先查看帮助",SCRW/2-80,SCRH/2,255,255,255,2); drawtxt("主页",SCRW/2-16,SCRH-19,255,255,255,0);
refresh(0,0,SCRW,SCRH);
} int event(int msg,int p1,int p2)
{if(msg==0)
{
if(_SRIGHT==p1)
{sright();}
if(p1==_1)
{_one();}
if(p1==_2)
{_two();}
if(p1==_3)
{_three();}
if(p1==_4)
{_four();}
if(p1==_5)
{_five();}
if(p1==_6)
{_six();}
if(p1==_7)
{_seven();} if(p1==_SLEFT)
{sleft();}
if(p1==_8)
{_eight();} if(p1==_9)
{_nine();}
if(p1==_0)
{_ten();} if(p1==_STAR)
{_star();}
if(p1==_POUND)
{_pound();} if(p1==_SELECT)
{start();}
}} int _one()
{playsound("l_five.mid",1,0,0);
cls(0,250,100);
drawtxt("1",10,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _two()
{
playsound("l_six.mid",1,0,0);
cls(50,100,200);
drawtxt("2",25,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _three()
{
playsound("one.mid",1,0,0);
cls(200,50,50);
drawtxt("3",40,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _four()
{
playsound("two.mid",1,0,0);
cls(250,50,250);
drawtxt("4",55,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _five()
{
playsound("three.mid",1,0,0);
cls(50,250,250);
drawtxt("5",70,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _six()
{cls(150,150,90);
playsound("four.mid",1,0,0);
drawtxt("6",85,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _seven()
{
playsound("five.mid",1,0,0);
cls(0,0,0);
drawtxt("7",100,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _eight()
{
playsound("six.mid",1,0,0);
cls(255,225,95);
drawtxt("8",115,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _nine()
{
playsound("seven.mid",1,0,0);
cls(80,80,80);
drawtxt("9",130,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _ten()
{
playsound("h_one.mid",1,0,0);
cls(100,25,80);
drawtxt("0",145,100,255,255,255,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _star()
{
playsound("夜曲.mid",1,0,0);
cls(255,255,255);
drawtxt("播放夜曲中",SCRW/2-40,SCRH/2,0,0,0,1);
refresh(1,20,SCRW-2,SCRH-80);
} int _pound()
{
playsound("青花瓷.mid",1,0,0);
cls(255,255,255);
drawtxt("播放青花瓷中",SCRW/2-50,SCRH/2,0,0,0,1);
refresh(1,20,SCRW-2,SCRH-80);
} int sright()
{
cls(0,0,0); drawtxt("小&美作品",SCRW/2-60,100,255,255,0,0);
refresh(0,0,SCRW,SCRH);
sleep(2000);
drawtxt("退出中...",SCRW/2-40,120,255,0,0,0);
refresh(0,0,SCRW,SCRH);
exit();
} int sleft()
{
cls(255,255,255);
drawtxt("手机钢琴 2.3",10,30,255,2,0,0);
drawtxt("小&美制作",10,50,0,0,0,0);
drawtxt("按1234567890键弹奏",10,70,0,0,0,0);
drawtxt("按OK返回主页",10,90,0,0,0,0);
drawtxt("敬请期待更多小美作品",10,180,0,0,50,0); drawtxt("按*#播放音乐",10,110,0,0,0,0); drawtxt("(C)小&美版权所有",10,130,0,0,0,0);
drawtxt("转载请保留作者信息",10,150,0,0,50,0);
refresh(1,20,SCRW-3,SCRH-40);
} int start()
{
bjfh();
}