• 当前位置:首页>>C语言>>C语言编程实例>>游戏封面欣赏
  • 游戏封面欣赏
  • 这是我位我自己的俄罗斯方块程序设计的一个游戏开始封面~~

    我觉得还可以啦~~所以让大家来欣赏欣赏~~可以直接运行~~~

    #include <graphics.h>
    #include <stdlib.h>
    #define SIZE 16
    unsigned char zimo[23][32]=   /*封面中文字的字模*/{{0x8,0x20,0x9,0xa8,0xf,0x24,0x11,0x20,0x11,0x24,0x3f,0xfe,0x51,0x20,0x91,0x20,0x11,0xa4,0x13,0x18,0x1d,0x10,0x11,0x30,0x11,0x48,0x11,0xa,0x15,0x6,0x12,0x2}
    ,{0x0,0x4,0x7f,0xfe,0x44,0x44,0x44,0x44,0x44,0x44,0x7f,0xfc,0x42,0x4,0x2,0x0,0x7,0xf0,0x8,0x10,0x14,0x20,0x62,0xc0,0x1,0x0,0x6,0x0,0x18,0x0,0xe0,0x0}
    ,{0x22,0x8,0x22,0x1c,0x7f,0x60,0x22,0x40,0x22,0x40,0x3e,0x40,0x22,0x7e,0x22,0x48,0x3e,0x48,0x22,0x48,0x22,0x48,0xff,0x48,0x0,0x88,0x14,0x88,0x23,0x8,0x42,0x8}
    ,{0x4,0x0,0x3,0x0,0x1,0x0,0x0,0x4,0xff,0xfe,0x4,0x0,0x4,0x10,0x7,0xf8,0x4,0x10,0x4,0x10,0x4,0x10,0x8,0x10,0x8,0x10,0x10,0x10,0x20,0xa0,0x40,0x40}
    ,{0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x88,0x13,0xfc,0xfc,0x88,0x10,0x88,0x10,0x88,0x10,0x88,0x17,0xfe,0x10,0x80,0x1d,0x40,0xf1,0x20,0x42,0x10,0x4,0xe,0x8,0x4}
    ,{0x9,0x0,0x9,0x0,0x9,0x4,0x11,0xfe,0x12,0x80,0x32,0x80,0x54,0x90,0x98,0xf8,0x10,0x80,0x10,0x80,0x10,0x88,0x10,0xfc,0x10,0x80,0x10,0x80,0x10,0x80,0x10,0x80}
    ,{0x2,0x0,0x2,0x10,0x3f,0xe0,0x2,0x20,0x2,0x44,0xff,0xfe,0x1,0x0,0x2,0x0,0xf,0xf0,0x18,0x10,0x28,0x10,0x4f,0xf0,0x88,0x10,0x8,0x10,0xf,0xf0,0x8,0x10}
    ,{0x0,0x8,0x7f,0xfc,0x1,0x0,0x1,0x0,0x1,0x0,0x1,0x0,0x1,0x10,0x3f,0xf8,0x1,0x0,0x1,0x0,0x1,0x0,0x1,0x0,0x1,0x0,0x1,0x4,0xff,0xfe,0x0,0x0}
    ,{0x2,0x0,0x2,0x10,0x3f,0xe0,0x2,0x20,0x2,0x44,0xff,0xfe,0x1,0x0,0x2,0x0,0xf,0xf0,0x18,0x10,0x28,0x10,0x4f,0xf0,0x88,0x10,0x8,0x10,0xf,0xf0,0x8,0x10}
    ,{0x0,0x0,0x7c,0x88,0x44,0x48,0x54,0x50,0x55,0xfc,0x55,0x24,0x55,0xac,0x55,0x24,0x55,0xfc,0x54,0x0,0x54,0xf8,0x54,0x88,0x20,0xf8,0x28,0x88,0x44,0xf8,0x80,0x88}
    ,{0x2,0x8,0x41,0x10,0x30,0xa0,0x17,0xfc,0x0,0x40,0x0,0x40,0xf0,0x44,0x17,0xfe,0x10,0x40,0x10,0x40,0x10,0x80,0x10,0xa0,0x11,0x18,0x2a,0x8,0x44,0x0,0x3,0xfe}
    ,{0x0,0x4,0x7f,0xfe,0x40,0x4,0x42,0xc,0x62,0x8c,0x54,0x54,0x54,0x54,0x48,0x24,0x48,0x24,0x54,0x54,0x52,0x4c,0x62,0x8c,0x61,0x4,0x42,0x4,0x40,0x14,0x40,0x8}
    ,{0x4,0x0,0x4,0x0,0x4,0x4,0xff,0xfe,0x4,0x0,0x4,0x0,0xf,0xf0,0x8,0x10,0x14,0x20,0x12,0x20,0x21,0x40,0x40,0x80,0x81,0x40,0x6,0x30,0x18,0xe,0x60,0x4}
    ,{0x8,0x20,0x8,0x24,0xff,0xfe,0x8,0x20,0x4,0x80,0x24,0xfc,0x25,0x0,0x26,0x40,0x24,0x20,0x4,0x20,0x3f,0xf8,0x24,0x48,0x24,0x48,0x24,0x48,0xff,0xfe,0x0,0x0}
    ,{0x0,0x40,0x40,0x48,0x27,0xfc,0x20,0x40,0x3,0xf8,0xe0,0x40,0x2f,0xfe,0x20,0x0,0x23,0xf8,0x22,0x8,0x23,0xf8,0x22,0x8,0x2b,0xf8,0x32,0x8,0x22,0x28,0x2,0x10}
    ,{0x10,0x40,0x10,0x20,0x10,0x0,0x13,0xfe,0xfa,0x2,0x14,0x44,0x10,0x40,0x1b,0xfe,0x30,0x88,0xd0,0x88,0x11,0x10,0x10,0x90,0x10,0x60,0x10,0x50,0x50,0x8c,0x23,0x4}
    ,{0x8,0x0,0x8,0x18,0xb,0xe0,0x10,0x40,0x10,0x40,0x30,0x40,0x50,0x44,0x9f,0xfe,0x10,0x40,0x10,0x40,0x10,0x40,0x10,0x40,0x10,0x48,0x17,0xfc,0x10,0x0,0x10,0x0}
    ,{0x1,0x0,0x3f,0xf8,0x8,0x20,0x4,0x44,0xff,0xfe,0x0,0x0,0x1f,0xf0,0x10,0x10,0x1f,0xf0,0x10,0x10,0x1f,0xf0,0x2,0x0,0x51,0x84,0x50,0x92,0x90,0x12,0xf,0xf0}
    ,{0x20,0x10,0x27,0x10,0x39,0x7c,0x41,0x14,0x82,0xfe,0x7a,0x14,0x24,0x7c,0x27,0x10,0xf9,0x7c,0x21,0x10,0x25,0x10,0x22,0xfe,0x2a,0x10,0x35,0x10,0x28,0x90,0x0,0x7e}
    ,{0x2,0x20,0x42,0x20,0x22,0x20,0x2f,0xfc,0x2,0x20,0x2,0x20,0xe2,0x20,0x22,0x24,0x2f,0xfe,0x22,0x20,0x22,0x20,0x22,0x20,0x24,0x20,0x50,0x20,0x8f,0xfe,0x0,0x0}
    ,{0x4,0x0,0x2,0x0,0x1,0x0,0x1,0x0,0x1,0x0,0x2,0x80,0x2,0x80,0x2,0x80,0x4,0x40,0x4,0x40,0x8,0x20,0x8,0x20,0x10,0x10,0x20,0x10,0x40,0xe,0x80,0x4}
    ,{0x2,0x10,0x41,0x10,0x20,0x1e,0x2f,0xe0,0x82,0x40,0x62,0x3e,0x23,0x84,0xa,0x88,0x12,0x88,0x22,0xfe,0xe2,0x88,0x24,0x88,0x24,0x88,0x28,0x88,0x31,0xa8,0x20,0x10}
    ,{0x0,0x40,0x0,0x50,0x7e,0x48,0x2,0x40,0x43,0xfe,0x24,0x40,0x14,0x44,0x14,0x44,0x8,0x48,0x14,0x48,0x12,0x50,0x22,0x20,0x40,0x60,0x80,0x92,0x1,0xa,0x2,0x6}};
    main()
    {
       int driver=DETECT,mode,i,x,y,banjin=SIZE,aaa=0,bbb=-1;
       registerbgidriver(EGAVGA_driver);
       initgraph(&driver,&mode,"");
       randomize();
       setcolor(GREEN);
       biankuang(0);
       biankuang(6);
       setbkcolor(BLUE);
       setcolor(BLUE);
       setpalette(YELLOW,YELLOW);
         pingbi(zimo[0],80,110);
         pingbi(zimo[1],240,110);
         pingbi(zimo[2],400,110);
         pingbi(zimo[3],160,240);
         pingbi(zimo[4],320,240);
          for(i=0;i<2;i++)
        { xiezi(zimo[i+5],100+20*i,580);
         xiezi(zimo[i+7],150+20*i,580);}
         for(i=0;i<9;i++)
         xiezi(zimo[i+14],100+20*i,10);
    setpalette(DARKGRAY,BLACK);
    setbkcolor(DARKGRAY);
    while(1)
     {  if(kbhit())goto label;
        if(aaa==0)
        {while(1){
        x=random(600)+16;
        y=random(440)+16;
        if(!(y>=70&&y<=410))break;
        }}

    [1] [2] [3] 下一页