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

正文內(nèi)容

基于51單片機的推箱子游戲-全文預(yù)覽

2024-12-06 07:06 上一頁面

下一頁面
  

【正文】 x+y*16] == 3) { ditu[y][x]=3。//將此移動操作記錄到 chexiao chexiao[1][0]=ren_y。 } if(ditu[y][x]==4 amp。 ditu[y][x]=2。 } } } /*****************用于檢測人或箱子能否移動 **********************/ void chuli(char dx, char dy)//dx,dy要么為 0要么為177。j=14。yuansu_code[ditu[i][j+1]],128+j/2,i*8+128)。i++) //寫上半屏 { for(j=0。 } } /******************將內(nèi)存中的 ditu寫入 到屏幕 ******************/ void to_lcd() { unsigned char i=0。 tx0++。 } /***************按頁寫一個高為 8 的行 需要傳入左上角的坐標用戶 兩個 指針 ************/ void tuxing_ye(unsigned char *tx0,unsigned char *tx1,unsigned char ye,unsigned char y)//tx0在左 ,tx1在右 { unsigned char i=y+8。 wzl(1)。 case key_queding: break。 } goto cd。 } goto cd。 cd2: i=scanf_hongwai()。 wenben_to_tuxing()。 wzl(0x8b)。 wzl(0x80)。 } } /**************菜單 返回被確定的序號 , 按了取消鍵則返回 255***********/ unsigned char caidan(unsigned char n)//表示選中這一行 { unsigned char i=0。) { wshuju(*add)。 //基本指令集 wzl(1)。 if(j16) {goto gl0。 i++。} gl0: wzl(y+j)。} if(n==3){x=136。 if(n==1){x=128。} x=0。 qp1: wshuju(0)。//轉(zhuǎn)到文本模式 } /*****************圖形模式下的清屏 ****************/ void tuxing_qinping() { unsigned char x=128。 } /**************文本轉(zhuǎn)到圖形模式 并開繪圖顯示 *********************/ void wenben_to_tuxing() { wzl(60)。 lcd_shuju=shuju。 lcd_en=0。 lcd_rw=0。 shengyi=300。 IR_OK=0。 IR_timer=0。i=31){ //IR_timer=7時,向數(shù)據(jù)碼反碼中移入 1,否則,移入 0. if(IR_timer=7){ IR_DATAL|=1。 //IR_timer=7時,向數(shù)據(jù)碼中移入 1,否則,移入 0. IR_DATAH=1。 IR_timer=0。amp。 { fm=1。 shengyi 是一個全局變量 , if(shengyi1) // 當(dāng)它等于 0時 ,蜂鳴器連接的引腳輸出低電平 , { fm=0。us0。 /********************游戲元素的點陣數(shù)據(jù) *******************************/ unsigned char code yuansu_code[5][8]={ {0,0,0,0,0,0,0,0},//空地 0 {255,255,255,255,255,255,255,255},//墻的點陣數(shù)據(jù) 1 {0x00,0x18,0x5A,0x7E,0x18,0x24,0x42,0x00},//人的點陣數(shù)據(jù) 2 {0x00,0x42,0x24,0x18,0x18,0x24,0x42,0x00},//目的地的點陣數(shù)據(jù) 3 {0x00,0x7E,0x56,0x6A,0x56,0x6A,0x7E,0x00}//箱子的點陣數(shù)據(jù) 4 }。//當(dāng)作內(nèi)存來使用 ,用來保存游戲的地圖 ,整個游戲都圍繞著這個數(shù)組展開 unsigned char caidan_biaoqian0[]={打開: }。//人的座標 unsigned char jushu=0。 unsigned char biaoti2[]={┗━━━┛ }。 //存儲 8位數(shù)據(jù)反碼 bit IR_OK=0。 如,第一關(guān)開始時,將人左移一格, idata ditu[8][16]={ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0}, {0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0}, {0,0,0,0,0,1,1,4,4,4,0,1,0,0,0,0}, {0,0,0,1,1,1,3,3,1,0,0,1,0,0,0,0}, {0,0,0,1,0,4,3,3,0,0,1,1,0,0,0,0}, {0,0,0,1,0,0,0,0,2,0,1,0,0,0,0,0}, {0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0} } 電路: 推箱子地圖編輯器 : (關(guān)閉本 Word 文件再打開,下面的 flash可以重新開始。 C、 數(shù)據(jù)表示: a、在地圖中用 0、 4分別表示 空地 、 墻 、 人 、 目的地 、 箱子
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1