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

正文內(nèi)容

基于8052單片機(jī)和8x16點(diǎn)陣屏俄羅斯方塊游戲板開發(fā)介紹-資料下載頁

2025-05-02 00:19本頁面
  

【正文】 startcontrol=0。 //按鍵命令:狀態(tài)切換,使進(jìn)入暫停狀態(tài) while(!startsuspendkey){ shapedisplay()。 } while(suspendcontrol){ shapedisplay()。 keyscan()。 //等待結(jié)束暫停狀態(tài)的命令 } } } Step if(startsuspendkey==0amp。amp。startcontrol==0amp。amp。suspendcontrol==1){ delayms(10)。 //按鍵有效條件:處在暫停界面 if(startsuspendkey==0){ suspendcontrol=0。 startcontrol=0。 //按鍵命令:狀態(tài)切換,使進(jìn)入繼續(xù)游戲狀態(tài) while(!startsuspendkey){ shapedisplay()。 } } } } /****************************************************************************************/ Step uchar check(char ashapenum,int aleft) //判斷方塊是否會遇到障礙物 { char i=3,j=0。 while(!jamp。amp。i=0){ if((move(allshape[ashapenum][i],aleft)+staticdata[y+i])!=(move(allshape[ashapenum][i],aleft)|staticdata[y+i])){ j++。 } i。 } return j。 //返回 0,說明沒有障礙 } /****************************************************************************************/ Step uchar shapedisappear()//方塊落定后消掉拼滿的行,并使沒有拼滿的行整體下移填補(bǔ)空缺行 { char i,j,r=4。 for(i=0。ir。i++){ if(staticdata[y+3i]==0xff){ for(j=y+3i。j0。j){ staticdata[j]=staticdata[j1]。 } i,r。 } } return 4r。 //函數(shù)返回一次性消掉的行的數(shù)目 } /****************************************************************************************/ Step void startimage() //開機(jī)歡迎畫面,在沒有按鍵作用的時(shí)候會不斷執(zhí)行 { uchar i,j。 startcontrol=1。 while(startcontrol){ for(i=10。i0。i){ for(j=0。j16。j+=2){ slock=1。P1=j。P3=0xaa。 slock=0。delayms(1)。P3=0x00。 } for(j=1。j16。j+=2){ slock=1。P1=j。P3=0x55。 slock=0。delayms(1)。P3=0x00。 } keyscan()。 //隨時(shí)響應(yīng)用戶輸入 } Step for(i=10。i0。i){ for(j=1。j16。j+=2){ slock=1。P1=j。P3=0xaa。 slock=0。delayms(1)。P3=0x00。 } for(j=0。j16。j+=2){ slock=1。P1=j。P3=0x55。 slock=0。delayms(1)。P3=0x00。 } keyscan()。 //隨時(shí)響應(yīng)用戶輸入 } } } /****************************************************************************************/ Step void overimage() //游戲結(jié)束畫面,分?jǐn)?shù)會強(qiáng)制閃爍 8次,并自動結(jié)束 { int i,j。 for(j=0。j8。j++){ for(i=0。i200。i++){ numberdisplay(mark)。 } delayms(500)。 } } /****************************************************************************************/ Step void dataset() //數(shù)據(jù)全部清零,重新開始游戲 { char j。 startcontrol=1。 suspendcontrol=0。 y=0。 left=0。 shapenum=0。 initialspeed=100。 speed=initialspeed。 systemspeed=initialspeed。 fastspeed=5。 randnum=rand()%19。 shapenum=randnum。 mark=0。 for(j=0。j19。j++){ //清除點(diǎn)陣上的顯示數(shù)據(jù) staticdata[j]=0。 } } /****************************************************************************************/ Step
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1