Hi everyone, i need some help understanding what each line says. would really appreicate it if anyone could help me, thanks so much.
*/
public class HighScore extends Actor
{
private Actor alignLeftWith;
public HighScore(Actor alignLeftWith)
{
this.alignLeftWith = alignLeftWith;
setImage(new GreenfootImage(1, 1));
if (UserInfo.isStorageAvailable())
{
UserInfo me = UserInfo.getMyInfo();
if (me != null)
{
setImage(new GreenfootImage("Your Best: " + me.getScore(), 25, java.awt.Color.WHITE, new java.awt.Color(0, true)));
}
}
}
public void addedToWorld(World world)
{
setLocation(alignLeftWith.getX() - alignLeftWith.getImage().getWidth()/2 + getImage().getWidth()/2, getY());
}
}
