1.2加上背景音樂及戳到泡泡時的音效
1.3如何讓泡泡一直不停出現...用回圈寫寫看能不能讓泡泡一直出現
2.1
int popox=0,popoy=0;
int fishx=0,fishy=0;
PImage popo;
PImage finger;
PImage bobo;
PImage back;
PImage fish;
void setup()
{
size(800,600);
fish=loadImage("fish.png");
bobo=loadImage("bobo.png");
finger=loadImage("finger.png");
popo=loadImage("popo.png");
back=loadImage("back.jpeg");
}
void draw()
{
// background(255,255,255);
image(back,0,0);
image(bobo,250,100);
popoy-=0.05;
image(popo,popox+300,popoy+600,100,100);
popoy-=0.05;
image(popo,popox+200,popoy+500,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+700,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+600,100,100);
popoy-=0.05;
image(popo,popox+300,popoy+1500,100,100);
popoy-=0.05;
image(popo,popox+200,popoy+1400,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+1300,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+1200,100,100);
popoy-=0.05;
image(popo,popox+300,popoy+1600,100,100);
popoy-=0.05;
image(popo,popox+200,popoy+1500,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+1700,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+1600,100,100);
popoy--;
image(popo,popox+300,popoy+800,100,100);
popoy--;
image(popo,popox+200,popoy+1000,100,100);
popoy--;
image(popo,popox+100,popoy+700,100,100);
popoy--;
image(popo,popox+500,popoy+1200,100,100);
popoy-=0.05;
image(popo,popox+300,popoy+2200,100,100);
popoy-=0.05;
image(popo,popox+200,popoy+1900,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+2000,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+1000,100,100);
popoy-=0.05;
image(popo,popox+400,popoy+2000,100,100);
popoy-=0.05;
image(popo,popox+600,popoy+2300,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+2400,100,100);
popoy-=0.05;
image(popo,popox+500,popoy+2600,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+2000,100,100);
popoy-=0.05;
image(popo,popox+300,popoy+2300,100,100);
popoy-=0.05;
image(popo,popox+200,popoy+2400,100,100);
popoy-=0.05;
image(popo,popox+100,popoy+2600,100,100);
image(finger,mouseX-30,mouseY-30,60,60);
fishx++;
image(fish,fishx,fishy+200);
}
2.2
沒有留言:
張貼留言