import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Raindrop here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Raindrop extends Actor
{
public Raindrop()
{
reSize();
}
public void reSize()
{
GreenfootImage image = getImage();
//System.out.println("Width: "+image.getWidth()+"\nHeight: "+image.getHeight());
image.scale(50, 50);
setImage(image);
}
/**
* Act - do whatever the Raindrop wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
// Add your action code here.
}
}
