float birdX = 0; float birdY = 0; float birdDX =11; float birdDY = 0; float bombX = birdX- 10; float bombY = birdY - 30; float bombDX = 0; float bombDY = 230; float monsterX = 230; float monsterY = 2; float monsterDX=23; float monsterDY=21; float bombDrop = bombY = bombY + bombDY; void setup (){ size (700,700); } void draw (){ scene(); object(); monster(); } void scene(){ background (#E08F39); } void object(){ fill(#7539E0); stroke(#C2ED2C); birdX= birdX + birdDX; rect(birdX, birdY, 80,90); bombDrop = bombY = bombY + bombDY; } void monster(){ fill(255,0,0); stroke(#1E98CB); monsterY= monsterY + monsterDY; ellipse(monsterX, monsterY, 30,90); } void mousePressed() { if (birdX ==0) { birdX = 0; } else { birdX= 210; } } void keyPressed(){ if (monsterX ==210) { monsterY = 0; } else { monsterY= 210; } }