If I compile and run the same project in Eclipse itself it works fine.
My project is a simple brick breaker game with several classes and too much code to paste it all, so, as I don't know which part of the code may be relevant, or if any of it would be relevant at all, I'll just post 1 method, the one I think could have something to do with the problem.
Basically for the drawing I create a Graphics2D buffer, draw what I want to the buffer, then draw it to the screen with
public void drawScreen()
{
Graphics2D g = (Graphics2D)this.getGraphics();
g.drawImage(buffer,0,0,this);
Toolkit.getDefaultToolkit().sync();
g.dispose();
}
Please help

New Topic/Question
Reply




MultiQuote




|