2018互動技術
2018年10月25日 星期四
Week07
血條
int life=10;
void setup(){
size(500,500);
}
void draw(){
background(0,0,205);
fill(255); rect(50,50,100,20);
fill(255,0,0); rect(50,50, life*10,20);
}
void mousePressed(){
life--;
}
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言