i getting error on getdocumentbas(). is there a easy way to display image on screen???
public class Player
{
private Image mario;
public Image getPlayerImage()
{ return mario.getImage(); }
public void init()
{
mario = new Image(getDocumentBas(),"Image/player_walk_right.GIF");
}
public void paint(Graphics g)
{
g.drawImage(mario,x,y,this);
}
}