// Anthony Harrison // red boat game int waterlevelx=250; int x=125, y=125; int boatx1=150, boatx2=170, boatx3=280,boatx4=300; int boaty1=380,boaty2=430,boaty3=430,boaty4=380; int birdx1=100,birdy1=100,birdx2=115,birdy2=90,birdx3=180,birdy3=100; void setup() { size(800,600); } void draw() { frameRate(10); background(210,210,255); rectMode(CENTER); //water fill(5,55,5); rect(400,550,800,waterlevelx); //boat fill(255,0,0); quad(boatx1,boaty1,boatx2,boaty2,boatx3,boaty3,boatx4,boaty4); //moves boat boatx1= boatx1+1; boatx2= boatx2+1; boatx3= boatx3+1; boatx4= boatx4+1; //birds if (mousePressed){ fill(0); triangle(birdx1,birdy1,birdx2,birdy2,birdx3,birdy3); //moves bird birdx1=birdx1+5; birdx2=birdx2+5; birdx3=birdx3+5; } }