public Container() { GreenfootImage img = new GreenfootImage(100,200); img.drawRect(0,0,99,199); setImage(img); counter = 0; }
public WaterWorld() { super(800, 600, 1); addObject(new Paddle(),100,getHeight()-100); addObject(new Container(),530,460); int counter = 0; }