2018年10月11日 星期四

Week05 1000

複習上週

櫻桃程式碼
PImage img;
float[] cherryX=0, cherryY=700;
float[] cherryVX=6, cherryVY=-40;
void setup(){
   sixe(800,600)
   img=loadImage("cherry.png");
}
void draw(){
   background(255);
   img(img, cherryX, cherryY, 100,150);
   cherryX += cherryVX;
   cherryY += cherryVY;
   cherryVY += 0.98
}
   
   

沒有留言:

張貼留言