void DrawGameframe()
{
gotoxy(FrameX+Frame_width-8,FrameY-2);
color(15);
cout<<"俄罗斯方块";
color(9);
//上横框
for(i=2;i<=2*Frame_width-8;i+=2)
{
gotoxy(FrameX+i,FrameY);
cout<<"■";
}
//下横框
for(i=2;i<=2*Frame_width-8;i+=2)
{
gotoxy(FrameX+i,FrameY+Frame_height);
cout<<"■";
a[FrameX+i][FrameY+Frame_height]=2;
}
//左竖框
for(i=0;i<=Frame_height;i++)
{
gotoxy(FrameX,FrameY+i);
cout<<"■";
a[FrameX][FrameY+i]=2;
}
//右竖框
for(i=1;i<=Frame_height;i++)
{
gotoxy(FrameX+2*Frame_width-8,FrameY+i);
cout<<"■";
a[FrameX+2*Frame_width-8][FrameY+i]=2;
}
//当前分数
color(15);
gotoxy(FrameX+2*Frame_width-2,FrameY);
cout<<" 当前分数";
gotoxy(FrameX+2*Frame_width-2,FrameY+1);
cout<<"┌-----------┓";
gotoxy(FrameX+2*Frame_width-2,FrameY+5);
cout<<"└-----------┛";
//下一个形状
color(15);
gotoxy(FrameX+2*Frame_width-2,FrameY+8);
cout<<" 下一个";
gotoxy(FrameX+2*Frame_width-2,FrameY+9);
cout<<"┌-----------┓";
gotoxy(FrameX+2*Frame_width-2,FrameY+15);
cout<<"└-----------┛";
}
老师您好,我这里已经记住了左右上下有边框,为什么方块还是会往下走?左右也会?请问是什么问题呢,麻烦老师帮忙看一下,谢谢。