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;
  }
}





week17 曉瑀上課筆記~

20170105 week17

今天認識很多材料

arduino













今日實作:processing+太鼓達人

step1:下載圖片


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;
}
}











step2: 設立分數及生命值

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; } }



ps. 野外求生:電池加鋼刷可生火





week 17 教學軟體筆記 呂郁欣




week 17 教學軟體筆記 呂郁欣

1.太鼓達人遊戲製作


2.Ardunio (是義大利文)




















 breadboard  麵包版















熱熔膠















杜邦線












OmniKinect hands free motion control system


Mozarc gameplay video "Bloody Purity", difficulty Normal, Level 13

太鼓達人
















沒有自動替代文字。

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;
}
}


3.介紹 3D 全境影像投影

4.介紹 Zuvio

5.介紹Ardunio


電腦的CPU

IC

USB = SEIAL

Week 17 Sean's note 60408027E

Arduino(義大利文):


較大(mega)、信用卡大小(normal)、隨身碟大小(nano)、指甲大小(Maxnano)
CUP內含快取記憶體差不多等同於 SOC 一顆完整的 IC

Bread

麵包有很多洞,軟軟的可以做很多事情

像是 ...



但是這塊麵包,需要特別注意...


如果想要加熱它,記得不要拿銀色的地方,要不然...


實作 Arduino:

非常人性化的下載選項


void setup(){
  pinMode(3, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop(){
 if(digitalRead(3)==LOW){
  Serial.write("Pin3 touch\n"); 
 }
}


Procseeing:

PImage imgBG;
void setup() {
  size(760, 430);
  imgBG=loadImage("taiku.png");
}
int cx=700, cy=160, score=0, heart=1000;
void draw() {
  background(imgBG);
  fill(0,0,128);
  textSize(70);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 (cx > 258 && cx < 263 && mousePressed){
      score+= 100;    
  }
  if (cx < 258) {
    heart --;
    cx=800;
  }
}


But 還沒和 Arduino 結合






WEEK 17_20170105_教學軟體設計


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;
}
}











60508013E_林子婷,Week17

106/01/05

>>>>太鼓達人 遊戲製作>>>>

*準備器材:
(1)Arduino

(2)USB線(接Arduino)

(3)Arduino NANO
 
arduino mega vs uno


uno較便宜,也較適合初學者

(4)擴充板

(5)單芯線


(6)剪線鉗
(7)麵包板

*OmniKinect hands free motion control system(成果影片)
https://www.youtube.com/watch?v=Vs9bfxg6o8g

(8)三用電表

(9)電子工具包

(11)電烙鐵
焊錯的可以弄掉重新焊

(12)熱熔槍


*步驟:
(1)到Arduino官網下載

(2)電腦接上Arduino
(3)開啟Arduino程式編輯


*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(70);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;
  }
}