public void draw(Graphics g) { g.fillRect(0, 0, WIDTH, HEIGHT); DrawBackGround(g); g.translate(camera.pos_x, camera.pos_y); // g.translate(0,0); map.draw(g); player.draw(g); highScore.draw(g); g.dispose(); }