1.會自己轉動
void setup(){ size(600,600); background(0,120,120); } float angle=0.01; void draw(){ background(0,0,0); fill(255,0,255); ellipse(300,300,200,200); translate(300,300); rotate(angle); angle=angle+0.01; for(int i=0;i<18;i++){ rotate( PI/9); fill(255,125,128); ellipse(100,100,150,30); } } 2.會跟著滑鼠跑
void setup(){ size(600,600); background(0,120,120); } float angle=0.01; void draw(){ background(0,0,0); translate(mouseX,mouseY); rotate(angle); angle=angle+0.01; for(int i=0;i<18;i++){ rotate( PI/9); fill(255,125,128); ellipse(50,50,150,30); } } 3.期中作業
http://flashgame.sina.com.tw/wp-content/themes/flashgamer/game.php?id=4686
85
回覆刪除