freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設計基于單片機的俄羅斯方塊游戲系統(tǒng)的設計-閱讀頁

2024-12-21 16:40本頁面
  

【正文】 lcdPlayChar 07STAR4WIDE void showScoreSpeed void uchar num[5] char i uint temp temp score for i 0i 5i num[i] temp10 temp temp10 for i 4i 0i if num[i] 0 num[i] 22 else break for i 4i 1i lcdPlayChar num[i]6STAR 4i WIDE lcdPlayChar speed104STAR2WIDE lcdPlayChar speed104STAR3WIDE void timeServer void if timeupdate timeupdate 0 lcdPlayChar fen107STAR lcdPlayChar fen107STAR1WIDE lcdPlayChar 107STAR2WIDE lcdPlayChar miao107STAR3WIDE lcdPlayChar miao107STAR4WIDE if fashionupdate fashionupdate 0 lcdPlayChar 227STAR2WIDE void t0isr void interrupt 1 uchar key TH0 6553610000 256 TL0 6553610000 256 downtimegap t0ms t0ms100 if t0ms 0 timeupdate 1 miao miao60 if miao 0 fen fen60 if t0ms 50 fashionupdate 1 key 0xff KEYLEFT 1 KEYRIGH 1 KEYROTATION 1 KEYDOWN 1 if KEYLEFT key 0 if KEYRIGH key 1 if KEYROTATION key 2 if KEYDOWN key 3 switch keystate case 0 if key gkey gkey key keystate 1 break case 1 if key gkey t0ms1 0 keystate 2 if key 0xff keyflag 1 else keystate 0 break case 2 if key gkey if t0ms1 PUSHON t0ms1 else keystate 0 keyflag 0 gkey 0xff break void showNextCube uchar code puchar xuchar y uchar ijtemp for i 0i 4i temp 1 for j 0j 4j if p[i] temp lcdPutPix xjyi1 else lcdPutPix xjyi0 temp 1 void createCube void static uchar next thiscube next next TL07 thisrow 0 thiscolumn 6 thisstate 0 thisbox cube16thiscube showNextCube cube16next193 void showCubeMap void unsigned char hanglietemp for hang HANG1hang 0hang if cubeMap[hang][0] 0 cubeMap[hang][1] 0 break for lie 0lie LIE8 lie temp 8lie if cubeMap[hang][lie]0x01 lcdPutPix temp1hang1 if cubeMap[hang][lie]0x02 lcdPutPix temp2hang1 if cubeMap[hang][lie]0x04 lcdPutPix temp3hang1 if cubeMap[hang][lie]0x08 lcdPutPix temp4hang1 if cubeMap[hang][lie]0x10 lcdPutPix temp5hang1 if cubeMap[hang][lie]0x20 lcdPutPix temp6hang1 if cubeMap[hang][lie]0x40 lcdPutPix temp7hang1 if cubeMap[hang][lie]0x80 lcdPutPix temp8hang1 void writeCubeToMap void uchar rowcolumntemp uchar hanglie for row 0row 4row temp 1 for column 0column 4column if thisbox[row] temp hang thisrowrow lie thiscolumncolumn cubeMap[hang][lie8] bittable[lie8] lcdPutPix lie1hang1 temp 1 void clearCubeFromMap void uchar rowcolumntemp uchar hanglie for row 0row 4row temp 1 for column 0column 4column if thisbox[row] temp hang thisrowrow lie thiscolumncolumn cubeMap[hang][lie8] bittable[lie8] lcdPutPix lie1hang0 temp 1 uchar checkBorder void if thisbox[3] 0 thisrow HANG4 return 1 else if thisbox[2] 0 thisrow HANG3 return 1 else if thisbox[1] 0 thisrow HANG2 return 1 else if thisbox[0] 0 thisrow HANG1 return 1 if thisbox[0] 0x01 thisbox[1] 0x01 thisbox[2] 0x01 thisbox[3] 0x01 if thiscolumn 0 return 1 else if thisbox[0] 0x02 thisbox[1] 0x02 thisbox[2] 0x02 thisbox[3] 0x02 if thiscolumn 1 return 1 else if thisbox[0] 0x04 thisbox[1] 0x04 thisbox[2] 0x04 thisbox[3] 0x04 if thiscolumn 2 return 1 else if thisbox[0] 0x08 thisbox[1] 0x08 thisbox[2] 0x08 thisbox[3] 0x08 if thiscolumn 3 return 1 if thisbox[0] 0x08 thisbox[1] 0x08 thisbox[2] 0x08 thisbox[3] 0x08 if thiscolumn LIE4 return 1 else if thisbox[0] 0x04 thisbox[1] 0x04 thisbox[2] 0x04 thisbox[3] 0x04 if thiscolumn LIE3 return 1 else if thisbox[0] 0x02 thisbox[1] 0x02 thisbox[2] 0x02 thisbox[3] 0x02 if thiscolumn LIE2 return 1 else if thisbox[0] 0x08 thisbox[1] 0x08 thisbox[2] 0x08 thisbox[3] 0x08 if thiscolumn LIE1 return 1 return 0 uchar checkClask void uchar rowcolumntemp uchar hanglie for row 0row 4row temp 1 for column 0column 4column if thisbox[row] temp hang thisrowrow lie thiscolumncolumn if cubeMap[hang][lie8] bittable[lie8] return 1 temp 1 return 0 void checkMap void uchar ijdelete bit full full 0 delete 0 for i HANG1i 0i if cubeMap[i][0] 0 cubeMap[i][1] 0 break if cubeMap[i][0] 0xff cubeMap[i][1] 0xff delete full 1
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1