package ie.dit;

float speed, x, y;
	boolean cashed = false;
	Main parent; // The parent PApplet that we will render ourselves onto
	int diffculties=0;

	Bird(Main p)
	{
		parent = p;
		x = 300;
		y = 300;
	}
	void move()
	{
		y += speed;
		parent.moveBird();
	}
	void jump()
	{
		speed = -9;
	}
	void drag() 
	{
		speed += 0.4;
	}
	
	void drawBird() {
		parent.stroke(255);
		parent.fill(255, 240, 85);
		parent.strokeWeight(2);
	}
	}


package ie.dit;

float speed, x, y;
	boolean cashed = false;
	Main parent; // The parent PApplet that we will render ourselves onto
	int diffculties=0;

	Bird(Main p)
	{
		parent = p;
		x = 300;
		y = 300;
	}
	void move()
	{
		y += speed;
		parent.moveBird();
	}
	void jump()
	{
		speed = -9;
	}
	void drag() 
	{
		speed += 0.4;
	}
	
	void drawBird() {
		parent.stroke(255);
		parent.fill(255, 240, 85);
		parent.strokeWeight(2);
	}
}


add method