1. 太鼓達人遊戲的製作2. Arduino or 視訊 or 音控3. 介紹3D全息影像投影4. 介紹zuvio5. 介紹Arduino
Arduino 擴充板
單芯線
剪線鉗
麵包板
OmniKinect hands free motion control system
電子工具包
三用電錶
電烙鐵
熱熔膠
實作
安裝 TONEMELODY ARDUINO
實作結果
鋼刷+電池-->0伏特+5伏特
IAAPA 2010 - Mozarc by Hypaa/Game Plus
太鼓達人實作
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(250<cx && cx<263 && mousePressed){
score +=100;
cx=800;
}
if(cx<250){
heart--;
cx=800;
}
}
沒有留言:
張貼留言