Link here.
Here's the code:
int c;
int v;
PImage ab;
void setup() {
ab = loadImage("abbey.jpg");
background(255);
size(400,400);
}
void draw() {
background(ab);
stroke(0);
rectMode(CENTER);
x = mouseX;
c = mouseX;
c = c/50;
c = round(c);
c = c * 50;
c = c - 10;
v = mouseX-15;
v = v/50;
v = round(v);
v = v*50;
v = v+10;
rect(x,300,30,50);
rect(x,260,20,20);
rect(x,273,5,5);
line(x+10,325,c+30,350);
line(x-10,325,v+30,350);
line(x+15,275,x+30,320);
line(x-15,275,x,320);
}
He will move with the mouse, and he will walk.
Now with extragratis popculture reference.
Geen opmerkingen:
Een reactie posten