Flying f; PImage birdFlyL; PImage birdDiveL; PImage birdFlyR; PImage birdDiveR; PImage water; void setup() { size(400,400); f = new Flying(); birdFlyL = loadImage("birdFlyL.png"); birdDiveL = loadImage("birdDiveL.png"); birdFlyR = loadImage("birdFlyR.png"); birdDiveR = loadImage("birdDiveR.png"); water = loadImage("water.png"); } void draw() { background(222,231,255); f.fly(); pushMatrix(); f.render(); popMatrix(); }