1 / 18

打地鼠 通訊系 陳郁蓉 何泓陞

打地鼠 通訊系 陳郁蓉 何泓陞. 使用說明. 工作日誌. 分工. 我們先一起設計圖案開始打程式. 發展文件. 測試文件. 分工情況. 陳郁蓉 : 寫出程式架構 , 畫出圖形 , 使地鼠慢慢冒出 , 記分與時間 何泓陞 : 畫針對不同情形之地鼠表情與顏色. 程式註解. 土地 setfillstyle (XHATCH_FILL,BROWN); fillellipse (90,80,60,25); fillellipse (220,80,60,25); fillellipse (350,80,60,25);

unity
Download Presentation

打地鼠 通訊系 陳郁蓉 何泓陞

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 打地鼠 通訊系 陳郁蓉 何泓陞

  2. 使用說明

  3. 工作日誌

  4. 分工 我們先一起設計圖案開始打程式

  5. 發展文件

  6. 測試文件

  7. 分工情況 陳郁蓉:寫出程式架構,畫出圖形,使地鼠慢慢冒出,記分與時間 何泓陞:畫針對不同情形之地鼠表情與顏色

  8. 程式註解 土地 setfillstyle(XHATCH_FILL,BROWN); fillellipse(90,80,60,25); fillellipse(220,80,60,25); fillellipse(350,80,60,25); fillellipse(90,220,60,25); fillellipse(220,220,60,25);/*5*/ fillellipse(350,220,60,25); fillellipse(90,360,60,25); fillellipse(220,360,60,25); fillellipse(350,360,60,25);

  9. 取亂數讓他冒出來 if(ran[j]==7){seven();} else if(ran[j]==8){eight();} else if(ran[j]==9){night();} else if(ran[j]==4){four();} else if(ran[j]==5){five();} else if(ran[j]==6){six();} else if(ran[j]==1){one();} else if(ran[j]==2){two();} else if(ran[j]==3){three();}

  10. 計分 int right0(){ right=right+1; /*得分~~*/ return(right); } int wrong0(){ wrong=wrong+1; /*失分~~*/ return(wrong); }

  11. 眼睛 if(i>25){ /*原本表情*/ arc(70,115-i,0,180,15); arc(70,116-i,0,180,15); /*弧長*/ arc(110,115-i,0,180,15); arc(110,116-i,0,180,15); setfillstyle(SOLID_FILL,WHITE); /*白色(眼睛)*/ pieslice(77.5,115-i,0,360,7.5); /*填色的圓型(眼睛)*/ pieslice(117.5,116-i,0,360,7.5); }

  12. 成果展示

More Related