PImage b;
PImage s;
PImage l;
PImage w;
PImage g;
PImage o;
PImage i;
PImage j;
PImage d;
PImage m;
PImage t;
float x;
void setup()
{
noCursor();
size(600, 300);
background(250);
framerate(60);
noStroke();
b = loadImage("usamap.gif");
s = loadImage("binladin.gif");
l = loadImage("sadam.gif");
w = loadImage("bush.gif");
g = loadImage("afganistan.gif");
o = loadImage("bomb.gif");
i = loadImage("iraq.gif");
j = loadImage("John_kerry.gif");
d = loadImage("oildrill.gif");
m = loadImage("soldier1.gif");
t = loadImage("tradecenter.gif");
image(b,0,0);
tint(255, 0, 0, 50);
image(w,0, 100, 250, 250);
image(w,250, 100, 250, 250);
image(w,500, 100, 250, 250);
}
void draw()
{
x = x + 1;
if(x> width) {
x= -width;
}
image (s, x, 0, 50, 50);
image (l, x/2, 0, 100, 100);
image(i, x,50,50,50);
image(d,-x/2, 200, 50, 50);
image(t, x/3, 250, 60,60);
image(g, -x/3.2,0, 60, 60);
image (o, mouseX, mouseY, 40, 40);
image( m, mouseX-40, mouseY, 40,40);
}