// Project 1 Teemo The Swift Scout, Follows you Lead with a mouse to escape a monster// // Can you guide hime yo safety// float TeemoX, TeemoY; float YasuoX,YasuoY; float horizon, SunX, SunY; void setup(){ size( 840,480); horizon= height/4; SunY= width/2; SunX= horizon/2; framerate(30); } void draw (){ scene(); Yasuo(); Teemo(); } void scene(){ background( 200,300,256); fill(200,255,200); rect( 0,horizon, width, height(+3/4)) SunX= SunX; SunX= SunX% width; fill (255,255,0); elipse ( SunX, SunY, 30,30 ); } void Yasuo(){ fill(0); elipse (YasuoX, YasuoY, 20,20,0); fill(255); ellipse(YasuoX, YasuoY } void Teemo(){ TeemoX= mouseX; TeemoY= mouseY; fill(255,0,0); rect(TeemoX, TeemoY, 30, 70); }