2017年1月5日 星期四

20170105 彩鳳筆記

Arduino
https://www.arduino.cc/


Arduino usb

Arduino nano

Arduino nano vs micro

Arduino extend (擴充版)

單芯線

剪線鉗

Bread board

OmniKinect hands free motion control system



三用電

電子工具包

電烙鐵

槍型電烙鐵


喇叭



Download Arduino

Open examples -> Choose toneMelody




***野外求生:電池 + 鋼刷 -> 起火



Mozarc gameplay video



太鼓達人


Processing 太鼓達人
PImage imgBG;
void setup (){
  size(760,430);
  imgBG=loadImage("taiku.png");
}
int cx=700, cy=160;
void draw(){
  background(imgBG);
  fill (255);
  rect(195,102,760-195, 229-102);
  fill (251,69,43);ellipse (cx, cy, 60,60);
  cx -=3;
  if(cx < 258){
    cx = 800;
  }
}


印出分數
PImage imgBG;
void setup (){
  size(760,430);
  imgBG=loadImage("taiku.png");
}
int cx=700, cy=160;
int score = 0, heart=10;
void draw(){
  background(imgBG);
  fill(0,0,255); 
  textSize(80); 
  text("Score:" + score + "Heart" + heart, 100,100);
  fill (255);
  rect(195,102,760-195, 229-102);
  fill (251,69,43);ellipse (cx, cy, 60,60);
  cx -=3;
  if(258 < cx && cx < 263 && mousePressed){
    score +=100;
    cx=800;
  }
  if(cx < 250){
    heart--;
    cx = 800;
  }
}





沒有留言:

張貼留言