import java.awt.*; import java.applet.Applet; import java.util.*; public class MapWalk2 extends Applet implements Runnable{ Thread th; Udr udr; public void init(){ EzImg.init(this); udr = new Udr(size()); Dimension sz = new Dimension(32,32); Node2 nd = makeMap(sz); for(int i=0;i<4;i++){ Image img = EzImg.o.maru(sz, Rnd.color()); img = EzImg.o.alphaImg(img); int speed = Rnd.get(3, 10); udr.add(new Walker2(img, nd, speed)); } udr.add(new BakGrad2(size())); th = new Thread(this); th.start(); } Node2 makeMap(Dimension sz){ Node2[] ns = new Node2[5]; int i; for(i=0;i