week 16
畫好了配件
把上週去背好的框框 加入到程式碼中
if(state==2){
hairr=false; eyes= false; head=false; dress=false;acc=false;
image(framee[currentF], 700, 600, 740,1069);
//image(gli, 700,600, 1300,1100); //image(Ani[(int)(Ani.length/(float)(width)*mouseX)], 700, 600);
if(saving==false){fill(#DB688B); stroke(#B4789A); ellipse(200,950 ,150,150); // backButton
if(testMouse(105 , 295 , 880 ,1020))ellipse(200,950 ,160,160);
fill(255); text("BACK", 140,965);}
if(state==2){
if (keyCode == RIGHT ) {currentF = (currentF + 1) % 4; frameTrue = true; }
if (keyCode == LEFT ) { currentF = (currentF -1+4) % 4; frameTrue = true;}
沒有留言:
張貼留言