I keep getting a Java.Lang.NullPointerException on this code:
private void render(){
BufferStrategy bs = this.getBufferStrategy();
if(bs == null){
this.createBufferStrategy(3);
}
Graphics g = bs.getDrawGraphics();
g.dispose();
bs.show();
}
Can someone tell what I am doing wrong?
You should try this: