2015年10月19日 星期一

02160270_周冠羽(Takashi),Week06

1.測試波浪效果(一面程式碼)
http://www.cmlab.csie.ntu.edu.tw/~jsyeh/processing/circleSHM/

2.遊戲天堂的鋼彈射擊遊戲(2小時寫出)
http://site.i-gamer.net/appic/html5/1445/





1.波浪效果

測試視窗大小




























======================================================================

先加入p5  (按鈕控制選項)
 示範  :時間倒數  效果 by _  小葉老師






















int count = 660 ; 
void setup(){
  size(500,500);
}

void draw(){
  if(count<60)
    background(255,0,0);
  else{
    background(255);
    count-- ;  
  }
  fill(0,255,255);
  textSize(50);
  text("Time : "+ int(count/60),100,100);
}

void mousePressed(){
  count = 660 ; 

}

沒有留言:

張貼留言