////A.Urrutia, CST 112 midterm int score=0; float sunX=100, sunY=100; float horizon; void setup() { //// setup //// size ( 650,450 ); horizon= height/4; sunY= horizon/2; } void draw() { // next frame // scene(); } void scene() { // sky, sun, etc. background( 200,200,255 ); fill(255,255,0); // yellow sun ellipse(sunX,sunY, 50,50); fill( 200,255,200); // grass rectMode( CORNER ); rect (0,horizon, width,height*3/4); // sun moves across sky // if (sunX > width) { sunX=0; sunY= random( 10, horizon-20); score= score+10; } sunX= sunX+2; fill(0); // text( sunX, sunX, sunY+40); }