mam gameCanvas z implements runnable i miedzy innymi:
public void paint(Graphics g){
g.setColor(0,0,0);
g.drawRect(0,0,getWidth(),getHeight());
g.drawImage(s_bohater,x,y,0);
this.flushGraphics();
}
public void run() {
graj=true;
while(graj==true){
this.klawiatura();
this.bohater();
this.mobs();
this.paint(g);
}
problem jest taki ze gdy nie ma this.flashGraphics obraz sie nie odswieża, lecz gdy jest - obraz jest bialy