public void render(){
       buffer.setColor(Color.RED);
       if(xfond+fond.getWidth(null)>0)
            buffer.drawImage(fond,(int)xfond, 0, null);
       buffer.drawImage(fond,(int)xfond+fond.getWidth(null),  0, null);
       if(xfond+fond.getWidth(this)*2<=800)
           xfond=0;
       buffer.setColor(Color.WHITE);
       buffer.drawString("FPS:"+Integer.toString(fps),10,50);
       p.drawPlayer((Graphics2D)buffer);
       for(int i=0;i<plateformes.size();i++){
           if(plateformes.get(i).x+plateformes.get(i).width>0 && plateformes.get(i).x<800)
                plateformes.get(i).drawPlateforme((Graphics2D)buffer);
       }
       strategy.show();
    }