/// project 2 /// Raymond Rodriguez String money="$"; float manX, manY; float coinX, coinY; float manheadX, manheadY; void setup() { size (500,500); background(0,200,50); manX= width/2; manY= height/2; } void draw() { action(); } void action (){ man(); coin(); } void man(){ fill(200,20,30); rectMode(CENTER); rect(manX,manY,50,100); fill(255); ellipse(manX,manY-80/2-50/2,35,35); } void coin(){ fill(200,100,0); ellipse(coinX-5,coinY+5,50,50); fill(250,100,0); ellipse(coinX-5,coinY+5,40,40); fill(0,0,0); text(money, coinX+3,coinY+12, 20,30); } void mousePressed(){ coinX= mouseX; coinY= mouseY; background(0,200,50); }