⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.c

📁 机器人足球,是用c语言实现的。大概有两千行
💻 C
字号:
/*菜单“关于”中的函数*/

int about1(int *x,int *y)
{
      int buttons;

      setwritemode(COPY_PUT);
      showtext1();
      DrawButtons3();
      setwritemode(XOR_PUT);
      cursor(*x,*y);
      for(;;)
      {
            newxy(x,y,&buttons);
            if(*x > 285 && *x < 355 && *y > 420 && *y < 450 && buttons)
                break;
      }

      return 0;
}

int about2(int *x,int *y)
{
      int buttons,xmin = 1,xmax = 639,ymin = 1,ymax = 479;

      setwritemode(COPY_PUT);
      showtext2();
      DrawButtons3();
      setwritemode(XOR_PUT);
      cursor(*x,*y);
      for(;;)
      {
            newxy(x,y,&buttons);
            if(*x > 285 && *x < 355 && *y > 420 && *y < 450 && buttons)
                break;
      }

      return 0;
}


int showtext1()
{
    drawmat(ben24H,24,150,100,BLACK);
    delay(100);
    drawmat(cheng24H,24,180,100,BLACK);
    delay(100);
    drawmat(xu24H,24,210,100,BLACK);
    delay(100);
    drawmat(you24H,24,240,100,BLACK);
    delay(100);
    drawmat(du24H,24,270,100,BLACK);
    delay(100);
    drawmat(huang24H,24,300,100,BLACK);
    delay(100);
    drawmat(chen24H,24,330,100,BLACK);
    delay(100);
    drawmat(san24H,24,360,100,BLACK);
    delay(100);
    drawmat(ren24H,24,390,100,BLACK);
    delay(100);
    drawmat(xie24H,24,420,100,BLACK);
    delay(100);
    drawmat(shou24H,24,450,100,BLACK);
    delay(100);
    drawmat(feng24H,24,480,100,BLACK);
    delay(100);
    drawmat(xian24H,24,510,100,BLACK);


    setcolor(WHITE);

    return 0;
}

int showtext2()
{
    drawmat(ben24H,24,120,100,BLACK);
    delay(100);
    drawmat(cheng24H,24,150,100,BLACK);
    delay(100);
    drawmat(xu24H,24,180,100,BLACK);
    delay(100);
    drawmat(zui24H,24,210,100,BLACK);
    delay(100);
    drawmat(zhong24H,24,240,100,BLACK);
    delay(100);
    drawmat(jie24H,24,270,100,BLACK);
    delay(100);
    drawmat(shi24H,24,300,100,BLACK);
    delay(100);
    drawmat(quan24H,24,330,100,BLACK);
    delay(100);
    drawmat(gui24H,24,360,100,BLACK);
    delay(100);
    drawmat(du24H,24,390,100,BLACK);
    delay(100);
    drawmat(huang24H,24,420,100,BLACK);
    delay(100);
    drawmat(chen24H,24,450,100,BLACK);
    delay(100);
    drawmat(san24H,24,480,100,BLACK);
    delay(100);
    drawmat(ren24H,24,510,100,BLACK);
    delay(100);
    drawmat(lian24H,24,120,200,BLACK);
    delay(100);
    drawmat(xi24H,24,150,200,BLACK);
    delay(100);
    drawmat(dian24H,24,180,200,BLACK);
    delay(100);
    drawmat(hua24H,24,210,200,BLACK);
    delay(100);
    setcolor(RED);
    settextstyle(0,0,2);
    settextjustify(1,1);
    outtextxy(400,210,"13277048360");

    setcolor(WHITE);

    return 0;
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -