Im trying to make a simple game. I have the basic understanding of spreadsheet and the coding itself, but im havign problems now and then.
Can i place the drawImage function in my object class so that i can return it anywhere i want. example. Boar.java has a line
if(boss.isVisible())
boss.drawBoss();
adn the Boss.java has this
public Image drawBoss(){
Graphics g
Graphics2D g2d = (Graphics2D)g;
return g2d.drawImage(.....)
}
So how to i make this work???